diff options
author | Tobias Christiansen <tobi@tobyase.de> | 2021-04-17 00:03:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-17 00:28:55 +0200 |
commit | 7744048d0fde1602b8bb68b98d821358ca32c480 (patch) | |
tree | 04458807df67ccc0ecec5688779616c177808d3c /Userland/Libraries/LibWeb | |
parent | e3c634fdd05b5eefc41d7952adffa0bdb41099fa (diff) | |
download | serenity-7744048d0fde1602b8bb68b98d821358ca32c480.zip |
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
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/ListItemBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp b/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp index 06ed92533e..3a731fb171 100644 --- a/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/ListItemBox.cpp @@ -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()); } } |