summaryrefslogtreecommitdiff
path: root/scene/gui/popup_menu.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-17 02:27:16 +0200
committerGitHub <noreply@github.com>2018-08-17 02:27:16 +0200
commit68676c774d4f3b7bfad8866a08546acf5a594cdf (patch)
treee2ab4c8aa7f37bad53a5b5ee592f152455876fae /scene/gui/popup_menu.cpp
parente46c2dbf748934e6fd09b5fbe66ac0a8665313fd (diff)
parent2d032c1562a5779f48bed92f2d51dbb9cd0791ec (diff)
Merge pull request #21091 from hpvb/fix-removing-popup-menu-item
Call minimum_size_changed() in PopupMenu::remove_item()
Diffstat (limited to 'scene/gui/popup_menu.cpp')
-rw-r--r--scene/gui/popup_menu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp
index 89a54d41b5..436dda41a4 100644
--- a/scene/gui/popup_menu.cpp
+++ b/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) {