Fixed: Wrong text width
--HG-- branch : develop
This commit is contained in:
parent
f5c8335fa9
commit
4f7c082a4a
1 changed files with 2 additions and 1 deletions
|
@ -916,7 +916,8 @@ namespace NLGUI
|
|||
return _LineMaxW;
|
||||
else
|
||||
{
|
||||
return std::min(_Parent->getInnerWidth(), (sint)_LineMaxW);
|
||||
sint offset = (sint)_XReal - (sint)_Parent->getXReal();
|
||||
return std::min(_Parent->getInnerWidth() - offset, (sint)_LineMaxW);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue