Fixed #8526, popup menu width now responds to submenu icon
(cherry picked from commit 69359f2220
)
This commit is contained in:
parent
43b0aa612f
commit
3cd1185b25
|
@ -106,6 +106,11 @@ Size2 PopupMenu::get_minimum_size() const {
|
|||
accel_max_w = MAX(accel_w, accel_max_w);
|
||||
}
|
||||
|
||||
if (items[i].submenu != "") {
|
||||
|
||||
size.width += get_icon("submenu")->get_width();
|
||||
}
|
||||
|
||||
minsize.height += size.height;
|
||||
max_w = MAX(max_w, size.width);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue