Skip to content

Commit 189daf8

Browse files
numberZerosfan5
authored andcommittedDec 25, 2017
Fix dancing text
1 parent 787cd15 commit 189daf8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/gui/intlGUIEditBox.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,9 @@ void intlGUIEditBox::calculateScrollPos()
14301430
// todo: adjust scrollbar
14311431
}
14321432

1433+
if (!WordWrap && !MultiLine)
1434+
return;
1435+
14331436
// vertical scroll position
14341437
if (FrameRect.LowerRightCorner.Y < CurrentTextRect.LowerRightCorner.Y)
14351438
VScrollPos += CurrentTextRect.LowerRightCorner.Y - FrameRect.LowerRightCorner.Y; // scrolling downwards

0 commit comments

Comments
 (0)
Please sign in to comment.