SDK/TextAreaWidget: Fix clear not setting preferred size

This commit is contained in:
Lynix 2019-07-05 22:20:13 +02:00
parent 912b47cedf
commit c4b7534ac1
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ namespace Ndk
m_drawer.Clear();
m_text.Clear();
m_textSprite->Update(m_drawer);
SetPreferredSize(Nz::Vector2f(m_textSprite->GetBoundingVolume().obb.localBox.GetLengths()));
RefreshCursor();
OnTextChanged(this, m_text);