mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1146730 - Always show top of options menu when opened. r=mcomella
This commit is contained in:
parent
33cce10813
commit
3806f7c061
@ -2891,6 +2891,11 @@ public class BrowserApp extends GeckoApp
|
||||
if (mMenuPanel != null)
|
||||
mMenuPanel.scrollTo(0, 0);
|
||||
|
||||
// Scroll menu ListView (potentially in MenuPanel ViewGroup) to top.
|
||||
if (mMenu instanceof GeckoMenu) {
|
||||
((GeckoMenu) mMenu).setSelection(0);
|
||||
}
|
||||
|
||||
if (!mBrowserToolbar.openOptionsMenu())
|
||||
super.openOptionsMenu();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user