mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 838400 - Set an explicit minHeight on context menu items. r=sriram DONTBUILD
This commit is contained in:
parent
480a461986
commit
c8f9c1d3c9
@ -67,6 +67,7 @@ public class PromptService implements OnClickListener, OnCancelListener, OnItemC
|
||||
private final int mIconTextPadding;
|
||||
private final int mIconSize;
|
||||
private final int mInputPaddingSize;
|
||||
private final int mMinRowSize;
|
||||
|
||||
PromptService() {
|
||||
sInflater = LayoutInflater.from(GeckoApp.mAppContext);
|
||||
@ -78,6 +79,7 @@ public class PromptService implements OnClickListener, OnCancelListener, OnItemC
|
||||
mIconTextPadding = (int) (res.getDimension(R.dimen.prompt_service_icon_text_padding));
|
||||
mIconSize = (int) (res.getDimension(R.dimen.prompt_service_icon_size));
|
||||
mInputPaddingSize = (int) (res.getDimension(R.dimen.prompt_service_inputs_padding));
|
||||
mMinRowSize = (int) (res.getDimension(R.dimen.prompt_service_min_list_item_height));
|
||||
|
||||
GeckoAppShell.getEventDispatcher().registerEventListener("Prompt:Show", this);
|
||||
}
|
||||
@ -692,6 +694,7 @@ public class PromptService implements OnClickListener, OnCancelListener, OnItemC
|
||||
}
|
||||
|
||||
convertView = sInflater.inflate(resourceId, null);
|
||||
convertView.setMinimumHeight(mMinRowSize);
|
||||
|
||||
TextView tv = (TextView) convertView.findViewById(android.R.id.text1);
|
||||
viewHolder = new ViewHolder(tv, tv.getPaddingLeft(), tv.getPaddingRight(),
|
||||
|
@ -44,6 +44,7 @@
|
||||
<dimen name="prompt_service_inputs_padding">16dp</dimen>
|
||||
<dimen name="prompt_service_left_right_text_with_icon_padding">10dp</dimen>
|
||||
<dimen name="prompt_service_top_bottom_text_with_icon_padding">8dp</dimen>
|
||||
<dimen name="prompt_service_min_list_item_height">48dp</dimen>
|
||||
<dimen name="remote_tab_child_row_height">64dp</dimen>
|
||||
<dimen name="remote_tab_group_row_height">26dp</dimen>
|
||||
<dimen name="popup_width">400dp</dimen>
|
||||
|
Loading…
Reference in New Issue
Block a user