diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-03-20 00:37:09 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-03-20 00:37:09 -0300 |
commit | 1bece0da7c99890045ca6edae802a156a13ada14 (patch) | |
tree | 40e0ee1ebaa1a067b2ac99eeb3998f3fa9294ee8 /scene/gui | |
parent | 47cf9985ebf2799d9718fa1a2ca96f2f70c6d212 (diff) |
Fix wrong width with PopupMenus on first opening in the editor
Diffstat (limited to 'scene/gui')
-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 d733c33c5f..fb9e2647ee 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -722,6 +722,7 @@ void PopupMenu::_notification(int p_what) { for (int i = 0; i < items.size(); i++) { items.write[i].xl_text = tr(items[i].text); items.write[i].dirty = true; + _shape_item(i); } child_controls_changed(); |