mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix dancing text
This commit is contained in:
parent
787cd15c14
commit
189daf87a0
1 changed files with 3 additions and 0 deletions
|
@ -1430,6 +1430,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…
Add table
Add a link
Reference in a new issue