Skip to content

Commit

Permalink
Merge pull request #594 from Sharktheone/layout/center-fix
Browse files Browse the repository at this point in the history
fix elements always stuck in center
  • Loading branch information
Sharktheone committed Sep 9, 2024
2 parents c6921d1 + b561a6b commit ee3be4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/gosub_taffy/src/style/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn parse_len(node: &mut impl Node, name: &str) -> LengthPercentage {

pub fn parse_len_auto(node: &mut impl Node, name: &str) -> LengthPercentageAuto {
let Some(property) = node.get_property(name) else {
return LengthPercentageAuto::Auto;
return LengthPercentageAuto::Length(0.0);
};

property.compute_value();
Expand Down

0 comments on commit ee3be4c

Please sign in to comment.