diff --git a/layout/xul/base/src/nsMenuPopupFrame.cpp b/layout/xul/base/src/nsMenuPopupFrame.cpp index d3567d10b415..989ad5e1a311 100644 --- a/layout/xul/base/src/nsMenuPopupFrame.cpp +++ b/layout/xul/base/src/nsMenuPopupFrame.cpp @@ -1129,21 +1129,21 @@ nsMenuPopupFrame::SyncViewWithFrame(nsIPresContext* aPresContext, } else { // move it up to be on screen, but don't let it go off the screen at the top - - // | - // | - // |+---- screenViewLocY - // || - // || Submenu ( = mRect ) - // -+| - // | - // | - // - - - - - - - - - - screenBottomTwips (bottom of the screen) - // | \ - // | } moveDistY - // | / - // +---- screenViewLocY + mRect.height - // + /* + * | + * | + * |+---- screenViewLocY + * || + * || Submenu ( = mRect ) + * -+| + * | + * | + * - - - - - - - - - - screenBottomTwips (bottom of the screen) + * | \ + * | } moveDistY + * | / + * +---- screenViewLocY + mRect.height + */ if ( (screenViewLocY + mRect.height) > screenBottomTwips ) { // XXX Bug 84121 comment 48 says the next line has to use screenHeightTwips, why not screenBottomTwips?