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:
enndeakin@sympatico.ca 2007-07-18 08:24:57 -07:00
parent ea6bd8313f
commit a23877472b

View File

@ -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);
}