Bug 761212: Custom menu should scroll to top everytime it is shown. [r=mfinkle]

This commit is contained in:
Sriram Ramasubramanian 2012-06-05 10:24:52 -07:00
parent af6f37d415
commit fc7a8dff42

View File

@ -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;
}