diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2017-12-25 00:54:43 +0300 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | 669806725637a7e97ae884b7983da6e19fcaa6f5 (patch) | |
tree | 55e4a946646298322fe21cad3e3c747fcb251de0 | |
parent | bb219e1059b711ba9663ed42304c8c22cacf86ab (diff) | |
download | minetest-669806725637a7e97ae884b7983da6e19fcaa6f5.tar.gz minetest-669806725637a7e97ae884b7983da6e19fcaa6f5.tar.bz2 minetest-669806725637a7e97ae884b7983da6e19fcaa6f5.zip |
Fix dancing text
-rw-r--r-- | src/intlGUIEditBox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |