mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
Fix min and max size using size value (#7948)
This commit is contained in:
parent
31d02d45ec
commit
54dec6079f
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue