Set minimal width of dropdown lists to the min button size
This commit is contained in:
@@ -470,6 +470,7 @@ void ShowDropDownListAt(Window *w, DropDownList &&list, int selected, int button
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (auto_width) width = std::max(width, max_item_width);
|
if (auto_width) width = std::max(width, max_item_width);
|
||||||
|
width = GetMinButtonSize(width);
|
||||||
|
|
||||||
Point dw_pos = { w->left + (_current_text_dir == TD_RTL ? wi_rect.right + 1 - (int)width : wi_rect.left), top};
|
Point dw_pos = { w->left + (_current_text_dir == TD_RTL ? wi_rect.right + 1 - (int)width : wi_rect.left), top};
|
||||||
Dimension dw_size = {width, height};
|
Dimension dw_size = {width, height};
|
||||||
|
|||||||
Reference in New Issue
Block a user