Commit 69359f22 by AlexHoratio Committed by alex

Fixed #8526, popup menu width now responds to submenu icon

parent f9fc2ef8
...@@ -108,6 +108,11 @@ Size2 PopupMenu::get_minimum_size() const { ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment