diff options
author | number Zero <silverunicorn2011@yandex.ru> | 2017-12-25 00:54:43 +0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-12-25 15:00:50 +0100 |
commit | 189daf87a00d1ec0d8444d2664ca45da6c53e87d (patch) | |
tree | 9e80078fc1f25f150c33bcb4322717a5a7137b27 /src | |
parent | 787cd15c14b65f50b06c6b9ccecf28e937318430 (diff) | |
download | minetest-189daf87a00d1ec0d8444d2664ca45da6c53e87d.tar.gz minetest-189daf87a00d1ec0d8444d2664ca45da6c53e87d.tar.bz2 minetest-189daf87a00d1ec0d8444d2664ca45da6c53e87d.zip |
Fix dancing text
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/intlGUIEditBox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |