mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
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:
parent
e3c634fdd0
commit
7744048d0f
Notes:
sideshowbarker
2024-07-18 20:12:52 +09:00
Author: https://github.com/TobyAsE Commit: https://github.com/SerenityOS/serenity/commit/7744048d0fd Pull-request: https://github.com/SerenityOS/serenity/pull/6385 Issue: https://github.com/SerenityOS/serenity/issues/6384
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user