You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Fix regression on 'PopupMenu's minimal size
This commit is contained in:
@@ -93,14 +93,14 @@ Size2 PopupMenu::get_minimum_size() const {
|
|||||||
if (items[i].submenu != "")
|
if (items[i].submenu != "")
|
||||||
size.width += get_icon("submenu")->get_width();
|
size.width += get_icon("submenu")->get_width();
|
||||||
|
|
||||||
if (has_check)
|
max_w = MAX(max_w, size.width);
|
||||||
size.width += check_w;
|
|
||||||
max_w = MAX(max_w, size.width + icon_w);
|
|
||||||
|
|
||||||
minsize.height += size.height;
|
minsize.height += size.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
minsize.width += max_w + accel_max_w;
|
minsize.width += max_w + icon_w + accel_max_w;
|
||||||
|
if (has_check)
|
||||||
|
minsize.width += check_w;
|
||||||
|
|
||||||
return minsize;
|
return minsize;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user