1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Fix dancing text

This commit is contained in:
number Zero
2017-12-25 00:54:43 +03:00
committed by sfan5
parent 787cd15c14
commit 189daf87a0

View File

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