mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibWeb: Expand the last cell in a row to the right edge
This commit is contained in:
parent
5f265eebf5
commit
4fe154bd6a
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/4fe154bd6a Pull-request: https://github.com/SerenityOS/serenity/pull/13314
|
@ -44,6 +44,12 @@ void TableFormattingContext::run(Box const& box, LayoutMode)
|
|||
calculate_column_widths(row, column_widths);
|
||||
});
|
||||
|
||||
float missing_width = box_state.content_width;
|
||||
for (auto column_width : column_widths)
|
||||
missing_width -= column_width;
|
||||
if (missing_width > 0)
|
||||
column_widths[column_widths.size() - 1] += missing_width;
|
||||
|
||||
float content_width = 0;
|
||||
float content_height = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue