mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 21:52:51 +00:00
Ensure PopupMenu item is shaped when the shortcut is set.
This commit is contained in:
parent
276ab5be07
commit
61ad9db18c
@ -59,6 +59,7 @@ Size2 PopupMenu::_get_contents_minimum_size() const {
|
||||
|
||||
for (int i = 0; i < items.size(); i++) {
|
||||
Size2 item_size;
|
||||
const_cast<PopupMenu *>(this)->_shape_item(i);
|
||||
|
||||
Size2 icon_size = items[i].get_icon_size();
|
||||
item_size.height = _get_item_height(i);
|
||||
|
Loading…
Reference in New Issue
Block a user