tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 520HTML 244Markdown 7TOML 41339 Definiciones

cargo fmt

acd3dc9885a4d6b98963681cbb8512abc6671873 · por Adam Nemecek · (hace 6 años) · padre c83f05b59 · ver el árbol en este commit

Delta semántico · 1

src/algo.rs

1 archivos · +6 −11

diff --git a/src/algo.rs b/src/algo.rs
index 958fa48e2..e9eed03d1 100644
--- a/src/algo.rs
+++ b/src/algo.rs
@@ -598,17 +598,12 @@ impl Forest {
                     // min-content max-content constraints from the top. Need to figure out correct thing to do here as
                     // just piling on more conditionals.
                     let min_main = if is_row && self.nodes[child.node].measure.is_none() {
-                        self.compute_internal(
-                            child.node,
-                            Size::undefined(),
-                            available_space,
-                            false,
-                        )
-                        .size
-                        .width
-                        .maybe_min(child.size.width)
-                        .maybe_max(child.min_size.width)
-                        .into()
+                        self.compute_internal(child.node, Size::undefined(), available_space, false)
+                            .size
+                            .width
+                            .maybe_min(child.size.width)
+                            .maybe_max(child.min_size.width)
+                            .into()
                     } else {
                         child.min_size.main(dir)
                     };