From 39cfbc2a7c023ecbf02f1aeef083c28edf96302d Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 6 Jan 2016 00:08:41 +0200 Subject: [PATCH] Fixed: Align UL, LI list style type marker outside content --- code/nel/src/gui/group_html.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 807558f43..86987cb9a 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -1729,8 +1729,14 @@ namespace NLGUI ucstring str; str.fromUtf8(_UL.back().getListMarkerText()); addString (str); + + sint32 indent = LIIndent; + // list-style-type: outside + if (_CurrentViewLink) + indent -= _CurrentViewLink->getMaxUsedW(); + getParagraph()->setFirstViewIndent(indent); + flushString (); - getParagraph()->setFirstViewIndent(LIIndent); _UL.back().Value++; }