From 189daf87a00d1ec0d8444d2664ca45da6c53e87d Mon Sep 17 00:00:00 2001 From: number Zero Date: Mon, 25 Dec 2017 00:54:43 +0300 Subject: [PATCH] Fix dancing text --- src/gui/intlGUIEditBox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/intlGUIEditBox.cpp b/src/gui/intlGUIEditBox.cpp index f5ea5b47f..8b0f10721 100644 --- a/src/gui/intlGUIEditBox.cpp +++ b/src/gui/intlGUIEditBox.cpp @@ -1430,6 +1430,9 @@ void intlGUIEditBox::calculateScrollPos() // todo: adjust scrollbar } + if (!WordWrap && !MultiLine) + return; + // vertical scroll position if (FrameRect.LowerRightCorner.Y < CurrentTextRect.LowerRightCorner.Y) VScrollPos += CurrentTextRect.LowerRightCorner.Y - FrameRect.LowerRightCorner.Y; // scrolling downwards -- 2.25.1