From c6bbed1027dfbc12bc3766127d0cd0743ffd8120 Mon Sep 17 00:00:00 2001 From: "enndeakin%sympatico.ca" Date: Wed, 18 Jul 2007 15:24:57 +0000 Subject: [PATCH] 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 --- mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp b/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp index 1cb6c805d4b..295b5e92b8d 100644 --- a/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp +++ b/mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp @@ -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); }