mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 844471: Menu is obscured in landscape mode. [r=mfinkle]
--HG-- extra : rebase_source : 91bf6ce0af16c45c522a77c5f3dc35d539cdb4ba
This commit is contained in:
parent
a37162d11f
commit
2a57474912
@ -107,8 +107,9 @@ public class MenuPopup extends PopupWindow {
|
||||
((LayoutParams) mArrowBottom.getLayoutParams()).rightMargin = mArrowMargin;
|
||||
}
|
||||
|
||||
if (anchorLocation[1] + anchor.getHeight() + mPanel.getMeasuredHeight() >= screenHeight) {
|
||||
// shown above anchor
|
||||
if ((anchorLocation[1] + anchor.getHeight() + mPanel.getMeasuredHeight() >= screenHeight) &&
|
||||
(anchorLocation[1] > mPanel.getMeasuredHeight())) {
|
||||
// shown above anchor, only if there is enough space above
|
||||
mArrowTop.setVisibility(View.GONE);
|
||||
mArrowBottom.setVisibility(View.VISIBLE);
|
||||
showAsDropDown(anchor, 0, -(mYOffset + mPanel.getMeasuredHeight() + anchor.getHeight()));
|
||||
|
Loading…
Reference in New Issue
Block a user