tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definitions

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

4c8ffecc59e1a37c94add011334698dda2166749 · by Nico Burns · (2 years ago) · parent 539fd458b · browse the tree at this commit

Semantic delta · 1

taffy_stylo/src/borrowed.rs

1 files · +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]