mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 387548, use sizetopopup to set popup size when an anchor is used, fixes wrong size on seamonkey autocomplete field, r+sr=bz
This commit is contained in:
parent
ea6bd8313f
commit
a23877472b
@ -860,7 +860,8 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame)
|
||||
if (!aAnchorFrame)
|
||||
return NS_OK;
|
||||
}
|
||||
else {
|
||||
|
||||
if (aAnchorFrame->GetContent()) {
|
||||
// the popup should be the same size as the anchor menu, for example, a menulist.
|
||||
sizedToPopup = nsMenuFrame::IsSizedToPopup(aAnchorFrame->GetContent(), PR_FALSE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user