Fixing bug 431606, content drop-down menus should appear with the parent menu. r=enndeakin, sr=roc, approval1.9=beltzner

This commit is contained in:
nick.kreeger@park.edu 2008-05-02 12:30:03 -07:00
parent cea0828eea
commit 0dabf3baae

View File

@ -1129,8 +1129,7 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame)
*/
if ( (screenViewLocY + mRect.height) > screenBottomTwips ) {
// XXX Bug 84121 comment 48 says the next line has to use screenHeightTwips, why not screenBottomTwips?
PRInt32 moveDistY = (screenViewLocY + mRect.height) - screenHeightTwips;
PRInt32 moveDistY = (screenViewLocY + mRect.height) - screenBottomTwips;
if ( screenViewLocY - moveDistY < screenTopTwips )
moveDistY = screenViewLocY - screenTopTwips;
screenViewLocY -= moveDistY;