tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1077HTML 1008Markdown 12TOML 83209 Definiciones

Fix typo that used flex_grow style in place of flex-shrink

4c8ffecc59e1a37c94add011334698dda2166749 · por Nico Burns · (hace 2 años) · padre 539fd458b · ver el árbol en este commit

Delta semántico · 1

taffy_stylo/src/borrowed.rs

1 archivos · +1 −1

diff --git a/taffy_stylo/src/borrowed.rs b/taffy_stylo/src/borrowed.rs
index 1f057726f..5dd32f491 100644
--- a/taffy_stylo/src/borrowed.rs
+++ b/taffy_stylo/src/borrowed.rs
@@ -158,7 +158,7 @@ impl taffy::FlexboxItemStyle for TaffyStyloStyleRef<'_> {
 
     #[inline]
     fn flex_shrink(&self) -> f32 {
-        self.0.get_position().flex_grow.0
+        self.0.get_position().flex_shrink.0
     }
 
     #[inline]