Fixed: Align UL, LI list style type marker outside content

This commit is contained in:
Nimetu 2016-01-06 00:08:41 +02:00
parent 9140d23557
commit 39cfbc2a7c

View file

@ -1729,8 +1729,14 @@ namespace NLGUI
ucstring str; ucstring str;
str.fromUtf8(_UL.back().getListMarkerText()); str.fromUtf8(_UL.back().getListMarkerText());
addString (str); addString (str);
sint32 indent = LIIndent;
// list-style-type: outside
if (_CurrentViewLink)
indent -= _CurrentViewLink->getMaxUsedW();
getParagraph()->setFirstViewIndent(indent);
flushString (); flushString ();
getParagraph()->setFirstViewIndent(LIIndent);
_UL.back().Value++; _UL.back().Value++;
} }