summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEricEzaM <itsjusteza@gmail.com>2022-10-02 14:55:40 +1000
committerEric M <itsjusteza@gmail.com>2022-10-22 22:05:20 +1000
commit61ad9db18ce2a48e3674399972823899150bade2 (patch)
tree9fb73668999297d22524fe7d01487e8735547240
parent276ab5be07752582b4341c33fb8f53a7887af87a (diff)
Ensure PopupMenu item is shaped when the shortcut is set.
-rw-r--r--scene/gui/popup_menu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp
index 9a411ef7ed..c5b8e2c833 100644
--- a/scene/gui/popup_menu.cpp
+++ b/scene/gui/popup_menu.cpp
@@ -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);