From abb3a01b1dd7de72a4cdf05a5cb4b08ec1b9c68f Mon Sep 17 00:00:00 2001 From: Ickshonpe Date: Thu, 2 Feb 2023 16:20:53 +0000 Subject: [PATCH] changed `Size` default width and height to `Val::Auto` --- crates/bevy_ui/src/geometry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/geometry.rs b/crates/bevy_ui/src/geometry.rs index 291bc5301fba6..7fd113e46dd16 100644 --- a/crates/bevy_ui/src/geometry.rs +++ b/crates/bevy_ui/src/geometry.rs @@ -339,7 +339,7 @@ pub struct Size { } impl Size { - pub const DEFAULT: Self = Self::all(Val::DEFAULT); + pub const DEFAULT: Self = Self::all(Val::Auto); /// Creates a new [`Size`] from a width and a height. ///