Merge pull request #66745 from EricEzaM/66453-popupmenu-shortcut-shape-fix

Ensure PopupMenu item is shaped when the shortcut is set.
This commit is contained in:
Rémi Verschelde 2023-02-13 09:29:41 +01:00
commit b7723a01d9
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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