Bug 1048300 - Don't restrict menu height. r=lucasr

This commit is contained in:
Wes Johnston 2014-09-03 09:29:53 -07:00
parent 95d0fd2bb1
commit 040f93c042

View File

@ -28,17 +28,6 @@ public class MenuPanel extends LinearLayout {
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) {