Browse Source

Merge pull request #21091 from hpvb/fix-removing-popup-menu-item

Call minimum_size_changed() in PopupMenu::remove_item()
Rémi Verschelde 7 years ago
parent
commit
68676c774d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/popup_menu.cpp

+ 1 - 0
scene/gui/popup_menu.cpp

@@ -1103,6 +1103,7 @@ void PopupMenu::remove_item(int p_idx) {
 
 	items.remove(p_idx);
 	update();
+	minimum_size_changed();
 }
 
 void PopupMenu::add_separator(const String &p_text) {