mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 01:51:10 +00:00
Fix PopupMenu's maximum height not being automatically set
This commit is contained in:
parent
b71701714f
commit
7fdfed2a9e
1 changed files with 2 additions and 0 deletions
|
|
@ -100,6 +100,8 @@ Size2 PopupMenu::get_minimum_size() const {
|
||||||
minsize.width += check_w;
|
minsize.width += check_w;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minsize.height = MIN(minsize.height, OS::get_singleton()->get_window_size().height);
|
||||||
|
|
||||||
if (max_height > 0 && minsize.height > max_height) {
|
if (max_height > 0 && minsize.height > max_height) {
|
||||||
minsize.height = max_height;
|
minsize.height = max_height;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue