Merge pull request #77691 from rsubtil/fix_popupmenu_auto_height
[3.x] Fix `PopupMenu`'s automatic max height
This commit is contained in:
commit
b15f7c1319
@ -100,6 +100,8 @@ Size2 PopupMenu::get_minimum_size() const {
|
||||
minsize.width += check_w;
|
||||
}
|
||||
|
||||
minsize.height = MIN(minsize.height, OS::get_singleton()->get_window_size().height);
|
||||
|
||||
if (max_height > 0 && minsize.height > max_height) {
|
||||
minsize.height = max_height;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user