LibWeb: Take full border box into account when vertically placing floats
This commit is contained in:
parent
6565ec59fa
commit
6ca90b8d57
Notes:
sideshowbarker
2024-07-17 20:21:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6ca90b8d579
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ void BlockFormattingContext::layout_floating_child(Box& box, BlockContainer cons
|
|||
x = first_edge(box.box_model().margin_box());
|
||||
float lowest_border_edge = 0;
|
||||
for (auto const& box : side_data.boxes)
|
||||
lowest_border_edge = max(lowest_border_edge, box.height() + box.box_model().border.bottom + box.box_model().margin.bottom);
|
||||
lowest_border_edge = max(lowest_border_edge, box.border_box_height());
|
||||
|
||||
side_data.y_offset += lowest_border_edge;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue