gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definiciones

WIP

0dcb6746332f1a7a3f2f3e73dd4aa50fe5c8baa6 · por Nico Burns · (hace 3 años) · padre c9c40576d · ver el árbol en este commit

Delta semántico · 1

src/style/dimension.rs

1 archivos · +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),
         }
     }