mirror of
https://github.com/godotengine/godot.git
synced 2025-03-26 00:16:37 +08:00
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:
commit
b7723a01d9
@ -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…
x
Reference in New Issue
Block a user