summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorTobias Christiansen <tobi@tobyase.de>2021-05-11 22:32:54 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-12 08:53:18 +0100
commite7498bb918a6fc64717473c6109fb57a34d09288 (patch)
tree4a55ff5fb0020cc16a1471940badb7fc4f8f9a22 /Meta
parenta51cee748ffe101d2cdd88ebb0b53e389b359359 (diff)
downloadserenity-e7498bb918a6fc64717473c6109fb57a34d09288.zip
LibWeb: Position the ListItemMarkers according to their width
Previously they were positioned with a fixed offset. However this lead to wider markers with more than one character to collide with the element itself. Now the ListItemMarkerBox generates and stores the appropriate String in its constructor and sets its own width according to that. The ListItemBox then lays out the Marker taking this width into account. This also made the painting a lot easier since we don't generate the needed Strings every time we repaint, just once.
Diffstat (limited to 'Meta')
0 files changed, 0 insertions, 0 deletions