diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-13 09:29:41 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-13 09:29:41 +0100 |
commit | b7723a01d957e6492a3f20bce8a47d3559afe5c5 (patch) | |
tree | e9bd7d5f22f496fe5c91d075f09831ed4b8420c4 /scene | |
parent | a90bbc3544df328f1dad978d47d639c3b02e7c10 (diff) | |
parent | 61ad9db18ce2a48e3674399972823899150bade2 (diff) |
Merge pull request #66745 from EricEzaM/66453-popupmenu-shortcut-shape-fix
Ensure PopupMenu item is shaped when the shortcut is set.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/popup_menu.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index 0eeac2f285..1a6adca121 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); |