diff --git a/crates/bevy_ui/src/flex/convert.rs b/crates/bevy_ui/src/flex/convert.rs index 9bdcc7fc6c..7ebc0fd0cd 100644 --- a/crates/bevy_ui/src/flex/convert.rs +++ b/crates/bevy_ui/src/flex/convert.rs @@ -118,8 +118,8 @@ pub fn from_style(scale_factor: f64, style: &Style) -> taffy::style::Style { flex_shrink: style.flex_shrink, flex_basis: style.flex_basis.scaled(scale_factor).into(), size: style.size.scaled(scale_factor).into(), - min_size: style.size.scaled(scale_factor).into(), - max_size: style.size.scaled(scale_factor).into(), + min_size: style.min_size.scaled(scale_factor).into(), + max_size: style.max_size.scaled(scale_factor).into(), aspect_ratio: style.aspect_ratio, gap: style.gap.scaled(scale_factor).into(), justify_self: None,