mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
cea0828eea
commit
0dabf3baae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user