Fixed #8526, popup menu width now responds to submenu icon
This commit is contained in:
parent
f9fc2ef83b
commit
69359f2220
1 changed files with 5 additions and 0 deletions
|
@ -108,6 +108,11 @@ Size2 PopupMenu::get_minimum_size() const {
|
||||||
accel_max_w = MAX(accel_w, accel_max_w);
|
accel_max_w = MAX(accel_w, accel_max_w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (items[i].submenu != "") {
|
||||||
|
|
||||||
|
size.width += get_icon("submenu")->get_width();
|
||||||
|
}
|
||||||
|
|
||||||
minsize.height += size.height;
|
minsize.height += size.height;
|
||||||
max_w = MAX(max_w, size.width);
|
max_w = MAX(max_w, size.width);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue