diff --git a/layout/xul/base/src/nsMenuPopupFrame.cpp b/layout/xul/base/src/nsMenuPopupFrame.cpp index 94901a3eac0..3c62d57830f 100644 --- a/layout/xul/base/src/nsMenuPopupFrame.cpp +++ b/layout/xul/base/src/nsMenuPopupFrame.cpp @@ -312,8 +312,7 @@ nsMenuPopupFrame::SetPreferredBounds(nsBoxLayoutState& aState, void nsMenuPopupFrame::AdjustView() { - if ((mPopupState == ePopupOpen || mPopupState == ePopupOpenAndVisible) && - mGeneratedChildren) { + if (mPopupState == ePopupOpen || mPopupState == ePopupOpenAndVisible) { // if the popup has just opened, make sure the scrolled window is at 0,0 if (mIsOpenChanged) { nsIBox* child = GetChildBox();