Fix min and max size using size value (#7948)

This commit is contained in:
Rob Parrett 2023-03-07 13:59:02 -07:00 committed by GitHub
parent 31d02d45ec
commit 54dec6079f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,