mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Fix scroll bar overlapping text (again) (#9058)
This commit is contained in:
parent
9dc29a75b4
commit
0750047919
2 changed files with 2 additions and 6 deletions
|
@ -1165,7 +1165,7 @@ void intlGUIEditBox::breakText()
|
|||
s32 lastLineStart = 0;
|
||||
s32 size = Text.size();
|
||||
s32 length = 0;
|
||||
s32 elWidth = RelativeRect.getWidth() - 6;
|
||||
s32 elWidth = RelativeRect.getWidth() - m_scrollbar_width - 10;
|
||||
wchar_t c;
|
||||
|
||||
for (s32 i=0; i<size; ++i)
|
||||
|
@ -1478,8 +1478,6 @@ 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 = new GUIScrollBar(Environment, getParent(), -1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue