🪲 Text could still be typed in TextBox when no scrollbar was present and the TextBox was full

0.8
Bruno Van de Velde 2017-10-07 11:53:22 +02:00
parent 317a31ac39
commit d1dcfbc33a
1 changed files with 1 additions and 1 deletions

View File

@ -912,7 +912,7 @@ namespace tgui
insert(); insert();
// Undo the insert if the text does not fit // 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_text = oldText;
m_selStart = oldSelStart; m_selStart = oldSelStart;