mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Fix PopupMenu's maximum height not being automatically set
This commit is contained in:
parent
147640412a
commit
3191832c37
@ -124,6 +124,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…
Reference in New Issue
Block a user