tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 709HTML 662Markdown 12TOML 62348 Definiciones

Leaf layout: don't set available space to max-size (#819)

Signed-off-by: Nico Burns <nico@nicoburns.com>

ecbcb83de8df8532fd4294eb972ec1c3b34d7967 · por Nico Burns · (hace 1 año) · padre 5dc582cca · ver el árbol en este commit

Delta semántico · 1

src/compute/leaf.rs

1 archivos · +0 −2

diff --git a/src/compute/leaf.rs b/src/compute/leaf.rs
index be7e49b02..4f1d979cd 100644
--- a/src/compute/leaf.rs
+++ b/src/compute/leaf.rs
@@ -116,7 +116,6 @@ where
             .maybe_sub(margin.horizontal_axis_sum())
             .maybe_set(known_dimensions.width)
             .maybe_set(node_size.width)
-            .maybe_set(node_max_size.width)
             .map_definite_value(|size| {
                 size.maybe_clamp(node_min_size.width, node_max_size.width) - content_box_inset.horizontal_axis_sum()
             }),
@@ -127,7 +126,6 @@ where
             .maybe_sub(margin.vertical_axis_sum())
             .maybe_set(known_dimensions.height)
             .maybe_set(node_size.height)
-            .maybe_set(node_max_size.height)
             .map_definite_value(|size| {
                 size.maybe_clamp(node_min_size.height, node_max_size.height) - content_box_inset.vertical_axis_sum()
             }),