From: number Zero Date: Sun, 24 Dec 2017 21:54:43 +0000 (+0300) Subject: Fix dancing text X-Git-Tag: 0.4.17~41 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=669806725637a7e97ae884b7983da6e19fcaa6f5;p=oweals%2Fminetest.git Fix dancing text --- 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