summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
diff options
context:
space:
mode:
authorAdam Hodgen <ant1441@gmail.com>2021-04-18 18:24:23 +0100
committerAndreas Kling <kling@serenityos.org>2021-04-19 12:26:05 +0200
commitb9c60599849354154d985cd76064d44f7c8d802f (patch)
treeae7107a62cee7232d1611068cce488b42853c6a0 /Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
parentae02acb8e1dd37abace03dfb1a234c3dd0be2fff (diff)
downloadserenity-b9c60599849354154d985cd76064d44f7c8d802f.zip
LibWeb: Correctly calculate height of TableRowGroupBox
As well as correctly calculating the height of TableRowBox, this change calculates the heights of TableRowGroupBoxs also. As before, this does not correctly take into consideration the 'height' attribute. Now the horizontal layout is approximately correct for the TableRowGroupBoxs we can now see that the `layout_row` method will need updating to correctly calculate cell width across all rows, not just the current TableRowGroupBox.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
index 08cefeb28f..474bd616aa 100644
--- a/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/TableFormattingContext.cpp
@@ -71,6 +71,7 @@ void TableFormattingContext::run(Box& box, LayoutMode)
row_group_box.set_height(content_height);
+ row_group_box.set_offset(0, total_content_height);
total_content_height += content_height;
});