Fixed: Wrong text width

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-09-27 08:30:33 +03:00
parent f5c8335fa9
commit 4f7c082a4a

View file

@ -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);
}
}