Sdk/ButtonWidget: Fix layout not triggering when updating text

This commit is contained in:
Jérôme Leclercq 2017-08-08 16:34:22 +02:00
parent e512302305
commit 061b358857
2 changed files with 2 additions and 1 deletions

View File

@ -9,5 +9,7 @@ namespace Ndk
inline void ButtonWidget::UpdateText(const Nz::AbstractTextDrawer& drawer)
{
m_textSprite->Update(drawer);
Layout();
}
}

View File

@ -61,7 +61,6 @@ namespace Ndk
m_gradientSprite->SetColor(Nz::Color(128, 128, 128));
}
void ButtonWidget::OnMouseExit()
{
m_gradientSprite->SetColor(Nz::Color(74, 74, 74));