소스 검색

Merge pull request #47180 from YeldhamDev/popupmenu_width_fix

Fix wrong width with PopupMenus on first opening in the editor
Rémi Verschelde 4 년 전
부모
커밋
bb8340302c
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();