tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 709HTML 662Markdown 12TOML 62348 Definitions

Fix typo

494b1b4fdc7337e4c08960ac95bce1c366e02aeb · by Emil Sjölander · (7 years ago) · parent bc2a1a531 · browse the tree at this commit

Semantic delta · 1

src/algo.rs

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