You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-03 16:55:53 +00:00
Fix PopupMenu's maximum height not being automatically set
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user