Bug 412954 - "menus should have Menu, PopupMenu or DropdownMenu window type" [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r+sr=roc a1.9=beltzner]

This commit is contained in:
2008-03-08 03:32:25 -08:00
parent 9d1045daca
commit 9fa35038ee
4 changed files with 26 additions and 17 deletions

View File

@@ -207,6 +207,7 @@ nsMenuPopupFrame::CreateWidgetForView(nsIView* aView)
widgetData.mWindowType = eWindowType_popup;
widgetData.mBorderStyle = eBorderStyle_default;
widgetData.clipSiblings = PR_TRUE;
widgetData.mPopupHint = mPopupType;
PRBool viewHasTransparentContent = !mInContentShell &&
nsLayoutUtils::FrameHasTransparency(this);