tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 788HTML 740Markdown 12TOML 62536 Definitions

Fix typo

008e6714650e66da76fab22789d7331e53e2ffe0 · by Emil Sjölander · (7 years ago) · parent 1ad276847 · browse the tree at this commit

Semantic delta · 1

src/algo.rs

1 files · +2 −2

diff --git a/src/algo.rs b/src/algo.rs
index 99cdad1c5..a4d02f270 100644
--- a/src/algo.rs
+++ b/src/algo.rs
@@ -1192,10 +1192,10 @@ fn compute_internal(
                             if node.flex_direction.is_row() {
                                 Number::from_f32(container_main_size)
                             } else {
-                                Number::from_f32(container_main_size)
+                                Number::from_f32(container_cross_size)
                             },
                             if node.flex_direction.is_row() {
-                                Number::from_f32(container_main_size)
+                                Number::from_f32(container_cross_size)
                             } else {
                                 Number::from_f32(container_main_size)
                             },