From 1bece0da7c99890045ca6edae802a156a13ada14 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sat, 20 Mar 2021 00:37:09 -0300 Subject: [PATCH] Fix wrong width with PopupMenus on first opening in the editor --- scene/gui/popup_menu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index d733c33c5fb..fb9e2647ee7 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();