tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definiciones

Fix double application of inset

2ca609ecf19c2e34bca2ce1fe1f4e73b09d62a97 · por Nico Burns · (hace 9 meses) · padre c94b8c2b8 · ver el árbol en este commit

Delta semántico · 1

src/compute/block.rs

1 archivos · +0 −4

diff --git a/src/compute/block.rs b/src/compute/block.rs
index 36a40eb16..cfe33eb0a 100644
--- a/src/compute/block.rs
+++ b/src/compute/block.rs
@@ -998,10 +998,6 @@ fn perform_final_layout_on_in_flow_children(
                 }
             }
 
-            // Apply inset
-            location.x += inset_offset.x;
-            location.y += inset_offset.y;
-
             let scrollbar_size = Size {
                 width: if item.overflow.y == Overflow::Scroll { item.scrollbar_width } else { 0.0 },
                 height: if item.overflow.x == Overflow::Scroll { item.scrollbar_width } else { 0.0 },