mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 12:33:45 +01:00
Fix dancing text
This commit is contained in:
parent
bb219e1059
commit
6698067256
@ -1418,6 +1418,9 @@ void intlGUIEditBox::calculateScrollPos()
|
|||||||
// todo: adjust scrollbar
|
// todo: adjust scrollbar
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!WordWrap && !MultiLine)
|
||||||
|
return;
|
||||||
|
|
||||||
// vertical scroll position
|
// vertical scroll position
|
||||||
if (FrameRect.LowerRightCorner.Y < CurrentTextRect.LowerRightCorner.Y)
|
if (FrameRect.LowerRightCorner.Y < CurrentTextRect.LowerRightCorner.Y)
|
||||||
VScrollPos += CurrentTextRect.LowerRightCorner.Y - FrameRect.LowerRightCorner.Y; // scrolling downwards
|
VScrollPos += CurrentTextRect.LowerRightCorner.Y - FrameRect.LowerRightCorner.Y; // scrolling downwards
|
||||||
|
Loading…
Reference in New Issue
Block a user