summaryrefslogtreecommitdiffstats
path: root/scene/gui/popup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/popup.cpp')
-rw-r--r--scene/gui/popup.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp
index 0c5a882044..0927404947 100644
--- a/scene/gui/popup.cpp
+++ b/scene/gui/popup.cpp
@@ -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();