From 7744048d0fde1602b8bb68b98d821358ca32c480 Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Sat, 17 Apr 2021 00:03:17 +0200 Subject: [PATCH] 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 --- Userland/Libraries/LibWeb/Layout/ListItemBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }