mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Use Vector* component-wise min/max/clamp functions where applicable
This commit is contained in:
parent
fe01776f05
commit
79ba22a73f
53 changed files with 95 additions and 176 deletions
|
|
@ -224,8 +224,7 @@ Size2 PopupPanel::_get_contents_minimum_size() const {
|
|||
}
|
||||
|
||||
Size2 cms = c->get_combined_minimum_size();
|
||||
ms.x = MAX(cms.x, ms.x);
|
||||
ms.y = MAX(cms.y, ms.y);
|
||||
ms = cms.max(ms);
|
||||
}
|
||||
|
||||
return ms + theme_cache.panel_style->get_minimum_size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue