mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1048300 - Don't restrict menu height. r=lucasr
This commit is contained in:
parent
95d0fd2bb1
commit
040f93c042
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user