diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-22 23:51:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 23:51:57 +0100 |
commit | bb8340302ce3d68f2459701f3a60cd7711a566d9 (patch) | |
tree | 9af69f188f1806b40556af01e6349eab115f3d3f | |
parent | 89d3c787d42ae7f36c9318179628bb3c4e933923 (diff) | |
parent | 1bece0da7c99890045ca6edae802a156a13ada14 (diff) |
Merge pull request #47180 from YeldhamDev/popupmenu_width_fix
Fix wrong width with PopupMenus on first opening in the editor
-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(); |