diff --git a/code/nel/src/gui/view_text.cpp b/code/nel/src/gui/view_text.cpp index 805143f32..cfc2c3b92 100644 --- a/code/nel/src/gui/view_text.cpp +++ b/code/nel/src/gui/view_text.cpp @@ -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); } }