Skip to content

Commit

Permalink
Fix dancing text
Browse files Browse the repository at this point in the history
  • Loading branch information
numberZero authored and sfan5 committed Dec 25, 2017
1 parent 787cd15 commit 189daf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/intlGUIEditBox.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 189daf8

Please sign in to comment.