Ensure PopupMenu item is shaped when the shortcut is set.

This commit is contained in:
EricEzaM 2022-10-02 14:55:40 +10:00 committed by Eric M
parent 276ab5be07
commit 61ad9db18c

View File

@ -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);