Преглед изворни кода

Fix wrong width with PopupMenus on first opening in the editor

Michael Alexsander пре 4 година
родитељ
комит
1bece0da7c
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      scene/gui/popup_menu.cpp

+ 1 - 0
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();