Bug 387548, use sizetopopup to set popup size when an anchor is used, fixes wrong size on seamonkey autocomplete field, r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@230194 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user