Permalink
Browse files

Fix dancing text

  • Loading branch information...
numberZero authored and sfan5 committed Dec 24, 2017
1 parent 787cd15 commit 189daf87a00d1ec0d8444d2664ca45da6c53e87d
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit 189daf8

Please sign in to comment.