Call minimum_size_changed() in PopupMenu::remove_item()

When removing an item from a PopupMenu we need to update the control's
size cache otherwise the size of the PopupMenu itself lags behind by 1
item size. Meaning the PopupMenu will remain too large.

(cherry picked from commit 2d032c1562)
This commit is contained in:
Hein-Pieter van Braam 2018-08-16 21:51:41 +02:00 committed by Rémi Verschelde
parent e4733c5fc4
commit 68d09255bd
1 changed files with 1 additions and 0 deletions

View File

@ -1033,6 +1033,7 @@ void PopupMenu::remove_item(int p_idx) {
items.remove(p_idx);
update();
minimum_size_changed();
}
void PopupMenu::add_separator() {