summaryrefslogtreecommitdiffstats
path: root/scene/gui/dialogs.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-03 12:49:08 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-03-20 13:47:42 +0100
commit79ba22a73f238ebd110fc5f3744c3c12a9a59475 (patch)
treeff5d57ddb759c04297aa6482cdc389ca8bc0c2cf /scene/gui/dialogs.cpp
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-79ba22a73f238ebd110fc5f3744c3c12a9a59475.tar.gz
Use `Vector*` component-wise `min/max/clamp` functions where applicable
Diffstat (limited to 'scene/gui/dialogs.cpp')
-rw-r--r--scene/gui/dialogs.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp
index 3746b667f6..c13a2e281a 100644
--- a/scene/gui/dialogs.cpp
+++ b/scene/gui/dialogs.cpp
@@ -252,8 +252,7 @@ Size2 AcceptDialog::_get_contents_minimum_size() const {
}
Size2 child_minsize = c->get_combined_minimum_size();
- content_minsize.x = MAX(child_minsize.x, content_minsize.x);
- content_minsize.y = MAX(child_minsize.y, content_minsize.y);
+ content_minsize = child_minsize.max(content_minsize);
}
// Then we take the background panel as it provides the offsets,