diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index 7d898dbd5..cc5ebe21a 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -124,6 +124,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; }