Fixed: Wrong text width when used inside html list element
--HG-- branch : develop
This commit is contained in:
parent
ebbb270bc1
commit
30caac063e
1 changed files with 2 additions and 2 deletions
|
@ -886,8 +886,8 @@ namespace NLGUI
|
|||
return _LineMaxW;
|
||||
else
|
||||
{
|
||||
sint parentWidth = std::min(_Parent->getMaxWReal(), _Parent->getWReal());
|
||||
return std::min(parentWidth-(sint)(_XReal-_Parent->getXReal()), (sint)_LineMaxW);
|
||||
sint parentWidth = std::min(_Parent->getMaxWReal(), _Parent->getWReal() - _Parent->getMarginLeft());
|
||||
return std::min(parentWidth-(sint)(_XReal-(_Parent->getXReal()-_Parent->getMarginLeft())), (sint)_LineMaxW);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue