diff options
author | random-geek <35757396+random-geek@users.noreply.github.com> | 2018-11-06 14:28:34 -0800 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2018-11-06 22:28:34 +0000 |
commit | 3a992ce76d2c9261bcf35d9123d8c77a4c227eeb (patch) | |
tree | 6b34f6bb473888551accf29e56313afd2b45adb9 /src/gui/intlGUIEditBox.cpp | |
parent | 0e306c084284aeafb3d5cde0cfec11a85a11cb9c (diff) | |
download | hax-minetest-server-3a992ce76d2c9261bcf35d9123d8c77a4c227eeb.tar.gz hax-minetest-server-3a992ce76d2c9261bcf35d9123d8c77a4c227eeb.zip |
Formspecs: Fix text clipped by scrollbars (#7816)
Diffstat (limited to '')
-rw-r--r-- | src/gui/intlGUIEditBox.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/intlGUIEditBox.cpp b/src/gui/intlGUIEditBox.cpp index 0b7adffc4..374fcc8bb 100644 --- a/src/gui/intlGUIEditBox.cpp +++ b/src/gui/intlGUIEditBox.cpp @@ -1482,6 +1482,8 @@ void intlGUIEditBox::createVScrollBar() } } + RelativeRect.LowerRightCorner.X -= m_scrollbar_width + 4; + irr::core::rect<s32> scrollbarrect = FrameRect; scrollbarrect.UpperLeftCorner.X += FrameRect.getWidth() - m_scrollbar_width; m_vscrollbar = Environment->addScrollBar(false, scrollbarrect, getParent(), getID()); |