mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb: Don't force line box fragments height to be at least line-height
I don't remember why we did things this way, but it's clearly not right to stretch fragments vertically. Instead, we should just align their bottom to the appropriate line (as we already do.)
This commit is contained in:
parent
88c32836d8
commit
7ec7729e1b
1 changed files with 0 additions and 2 deletions
|
@ -141,8 +141,6 @@ void InlineFormattingContext::run(Box&, LayoutMode layout_mode)
|
|||
|
||||
if (fragment.type() == LineBoxFragment::Type::Leading || fragment.type() == LineBoxFragment::Type::Trailing) {
|
||||
fragment.set_height(max_height);
|
||||
} else {
|
||||
fragment.set_height(max(min_line_height, fragment.height()));
|
||||
}
|
||||
|
||||
// Vertically align everyone's bottom to the line.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue