Fix double application of inset
Semantic delta · 1
src/compute/block.rs
- body changed fn perform_final_layout_on_in_flow_children
1 files · +0 −4
- src/compute/block.rs +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 },