tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definiciones

Improve interaction of abspos children of block containers with margin collapsing (#760)

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

c86f9223e8262ae2d25cdca10fa569c15881dcd2 · por Nico Burns · (hace 1 año) · padre b765cb51a · ver el árbol en este commit

Delta semántico · 1

src/compute/block.rs

1 archivos · +1 −1

diff --git a/src/compute/block.rs b/src/compute/block.rs
index db1eb8bdd..be1c4f16d 100644
--- a/src/compute/block.rs
+++ b/src/compute/block.rs
@@ -551,8 +551,8 @@ fn perform_final_layout_on_in_flow_children(
                 y_offset_for_absolute = committed_y_offset + item_layout.size.height + y_margin_offset;
             } else {
                 committed_y_offset += item_layout.size.height + y_margin_offset;
-                y_offset_for_absolute = committed_y_offset;
                 active_collapsible_margin_set = bottom_margin_set;
+                y_offset_for_absolute = committed_y_offset + active_collapsible_margin_set.resolve();
             }
         }
     }