LibWeb: Fix misplaced bullet points on list items

The bullet point should not be centered in the height of the list item,
but rather stay in front of the first line.
So, instead of giving the marker the full height of the ListItemBox,
it gets the height of a single line.

This closes #6384
This commit is contained in:
Tobias Christiansen 2021-04-17 00:03:17 +02:00 committed by Andreas Kling
parent e3c634fdd0
commit 7744048d0f
Notes: sideshowbarker 2024-07-18 20:12:52 +09:00

View File

@ -56,7 +56,7 @@ void ListItemBox::layout_marker()
}
m_marker->set_offset(-8, 0);
m_marker->set_size(4, height());
m_marker->set_size(4, line_height());
}
}