Fix dancing text

This commit is contained in:
number Zero 2017-12-25 00:54:43 +03:00 committed by SmallJoker
parent bb219e1059
commit 6698067256
1 changed files with 3 additions and 0 deletions

View File

@ -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