From 669806725637a7e97ae884b7983da6e19fcaa6f5 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/intlGUIEditBox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intlGUIEditBox.cpp b/src/intlGUIEditBox.cpp index ad59ef13a..74b9f634c 100644 --- a/src/intlGUIEditBox.cpp +++ b/src/intlGUIEditBox.cpp @@ -1418,6 +1418,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