tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1077HTML 1008Markdown 12TOML 83209 Definiciones

Fix typo

494b1b4fdc7337e4c08960ac95bce1c366e02aeb · por Emil Sjölander · (hace 7 años) · padre bc2a1a531 · ver el árbol en este commit

Delta semántico · 1

src/algo.rs

1 archivos · +1 −1

diff --git a/src/algo.rs b/src/algo.rs
index 987f8de4a..4fc059131 100644
--- a/src/algo.rs
+++ b/src/algo.rs
@@ -437,7 +437,7 @@ fn compute_internal(node: &style::Node, main: SizeConstraint, cross: SizeConstra
 
       if total_violation > 0.0 {
         for child in &mut unfrozen {
-          child.frozen = child.violation > 0.0;
+          child.frozen = child.violation < 0.0;
         }
       } else if total_violation < 0.0 {
         for child in &mut unfrozen {