tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definitions

WIP

0dcb6746332f1a7a3f2f3e73dd4aa50fe5c8baa6 · by Nico Burns · (3 years ago) · parent c9c40576d · browse the tree at this commit

Semantic delta · 1

src/style/dimension.rs

1 files · +1 −1

diff --git a/src/style/dimension.rs b/src/style/dimension.rs
index 99dc65c89..f5a95458d 100644
--- a/src/style/dimension.rs
+++ b/src/style/dimension.rs
@@ -84,7 +84,7 @@ impl LengthPercentageAuto {
             Self::Length(length) => Some(length),
             Self::Percent(percent) => Some(context * percent),
             Self::Auto => None,
-            Self::MorphormStretch(_) => None,
+            Self::MorphormStretch(_) => Some(0.0),
         }
     }