🪲 Text could still be typed in TextBox when no scrollbar was present and the TextBox was full
This commit is contained in:
parent
317a31ac39
commit
d1dcfbc33a
@ -912,7 +912,7 @@ namespace tgui
|
||||
insert();
|
||||
|
||||
// Undo the insert if the text does not fit
|
||||
if (oldText.getSize() + 1 != m_text.getSize())
|
||||
if (m_lines.size() > getInnerSize().y / m_lineHeight)
|
||||
{
|
||||
m_text = oldText;
|
||||
m_selStart = oldSelStart;
|
||||
|
Loading…
x
Reference in New Issue
Block a user