mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 00:21:51 +02:00
Fix dancing text
This commit is contained in:
parent
787cd15c14
commit
189daf87a0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue