From b561a6b8beddb019f9ef415bab9028ccce9193a6 Mon Sep 17 00:00:00 2001 From: Shark Date: Mon, 9 Sep 2024 14:36:39 +0200 Subject: [PATCH] fix elements always stuck in center --- crates/gosub_taffy/src/style/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gosub_taffy/src/style/parse.rs b/crates/gosub_taffy/src/style/parse.rs index ca099a17d..6ceb4615d 100644 --- a/crates/gosub_taffy/src/style/parse.rs +++ b/crates/gosub_taffy/src/style/parse.rs @@ -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();