Bug 1048300 - Don't restrict menu height. r=lucasr
authorWes Johnston <wjohnston@mozilla.com>
Wed, 03 Sep 2014 09:29:53 -0700
changeset 203253 a8f37943e690e3c0f2f55eb34bb67e2c946e032b
parent 203252 16d4b2727467eaac79f1f049c1c97a4419e4e047
child 203254 8a5f6d1f48828680b069abbda59f5d4d0055a2df
push id27424
push userryanvm@gmail.com
push dateWed, 03 Sep 2014 19:35:53 +0000
treeherdermozilla-central@bfef88becbba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslucasr
bugs1048300
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1048300 - Don't restrict menu height. r=lucasr
mobile/android/base/menu/MenuPanel.java
--- a/mobile/android/base/menu/MenuPanel.java
+++ b/mobile/android/base/menu/MenuPanel.java
@@ -24,27 +24,16 @@ public class MenuPanel extends LinearLay
     public MenuPanel(Context context, AttributeSet attrs) {
         super(context, attrs);
 
         int width = (int) context.getResources().getDimension(R.dimen.menu_item_row_width);
         setLayoutParams(new ViewGroup.LayoutParams(width, ViewGroup.LayoutParams.WRAP_CONTENT));
     }
 
     @Override
-    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
-        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
-
-        // Restrict the height to 75% of the screen-height. heightPixels changes during rotation.
-        DisplayMetrics metrics = getContext().getResources().getDisplayMetrics();
-        int restrictedHeightSpec = MeasureSpec.makeMeasureSpec((int) (0.75 * metrics.heightPixels), MeasureSpec.AT_MOST);
-
-        super.onMeasure(widthMeasureSpec, restrictedHeightSpec);
-    }
-
-    @Override
     public boolean dispatchPopulateAccessibilityEvent (AccessibilityEvent event) {
         if (Versions.feature14Plus) {
             onPopulateAccessibilityEvent(event);
         }
 
         return true;
     }
 }