Skip to content

Commit 3a992ce

Browse files
random-geekparamat
authored andcommitted
Formspecs: Fix text clipped by scrollbars (#7816)
1 parent 0e306c0 commit 3a992ce

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/gui/guiEditBoxWithScrollbar.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,8 @@ void GUIEditBoxWithScrollBar::createVScrollBar()
14011401

14021402
m_scrollbar_width = skin ? skin->getSize(gui::EGDS_SCROLLBAR_SIZE) : 16;
14031403

1404+
RelativeRect.LowerRightCorner.X -= m_scrollbar_width + 4;
1405+
14041406
irr::core::rect<s32> scrollbarrect = m_frame_rect;
14051407
scrollbarrect.UpperLeftCorner.X += m_frame_rect.getWidth() - m_scrollbar_width;
14061408
m_vscrollbar = Environment->addScrollBar(false, scrollbarrect, getParent(), getID());

src/gui/intlGUIEditBox.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1482,6 +1482,8 @@ void intlGUIEditBox::createVScrollBar()
14821482
}
14831483
}
14841484

1485+
RelativeRect.LowerRightCorner.X -= m_scrollbar_width + 4;
1486+
14851487
irr::core::rect<s32> scrollbarrect = FrameRect;
14861488
scrollbarrect.UpperLeftCorner.X += FrameRect.getWidth() - m_scrollbar_width;
14871489
m_vscrollbar = Environment->addScrollBar(false, scrollbarrect, getParent(), getID());

0 commit comments

Comments
 (0)