summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-22 23:51:57 +0100
committerGitHub <noreply@github.com>2021-03-22 23:51:57 +0100
commitbb8340302ce3d68f2459701f3a60cd7711a566d9 (patch)
tree9af69f188f1806b40556af01e6349eab115f3d3f
parent89d3c787d42ae7f36c9318179628bb3c4e933923 (diff)
parent1bece0da7c99890045ca6edae802a156a13ada14 (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.cpp1
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();