From 639ce91e61f18fb1db6323c5f590cde97c2423d9 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 --HG-- branch : develop --- 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++; }