diff --git a/layout/xul/base/src/nsMenuPopupFrame.cpp b/layout/xul/base/src/nsMenuPopupFrame.cpp index 40da52e0c8a8..3bdff88cdf71 100644 --- a/layout/xul/base/src/nsMenuPopupFrame.cpp +++ b/layout/xul/base/src/nsMenuPopupFrame.cpp @@ -1250,7 +1250,7 @@ nsMenuPopupFrame::SyncViewWithFrame(nsIPresContext* aPresContext, // ensure it is not even partially offscreen. if ( (screenViewLocX + mRect.width) > screenRightTwips ) - xpos -= (screenViewLocX + mRect.width) - screenRightTwips; + xpos -= (screenViewLocX + mRect.width) - screenRightTwips; if ( (screenViewLocY + mRect.height) > screenBottomTwips ) ypos -= (mRect.height + margin.top + margin.bottom);