From 4f7c082a4a6dd4746782833833727ed9910d660a Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 27 Sep 2018 08:30:33 +0300 Subject: [PATCH] Fixed: Wrong text width --HG-- branch : develop --- code/nel/src/gui/view_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }