1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

Fix wrong width with PopupMenus on first opening in the editor

This commit is contained in:
Michael Alexsander
2021-03-20 00:37:09 -03:00
parent 47cf9985eb
commit 1bece0da7c

View File

@@ -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();