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(); } } }