mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 761212: Custom menu should scroll to top everytime it is shown. [r=mfinkle]
This commit is contained in:
parent
af6f37d415
commit
fc7a8dff42
@ -474,6 +474,10 @@ abstract public class GeckoApp
|
||||
|
||||
@Override
|
||||
public void openOptionsMenu() {
|
||||
// Scroll custom menu to the top
|
||||
if (mMenuPanel != null)
|
||||
mMenuPanel.scrollTo(0, 0);
|
||||
|
||||
if (!mBrowserToolbar.openOptionsMenu())
|
||||
super.openOptionsMenu();
|
||||
}
|
||||
@ -574,6 +578,10 @@ abstract public class GeckoApp
|
||||
onPreparePanel(featureId, mMenuPanel, sMenu);
|
||||
}
|
||||
|
||||
// Scroll custom menu to the top
|
||||
if (mMenuPanel != null)
|
||||
mMenuPanel.scrollTo(0, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user