Skip to content

Commit

Permalink
fix elements always stuck in center
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Sep 9, 2024
1 parent f7f1e26 commit b561a6b
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 b561a6b

Please sign in to comment.