Avoid height for empty message in AutoSizedTextBox

pull/3034/head
CedricMocquillon 4 years ago
parent 6bfdf0e57f
commit 2d3d22025a

@ -32,7 +32,7 @@ namespace Gui
MyGUI::IntSize AutoSizedTextBox::getRequestedSize()
{
return getTextSize();
return getCaption().empty() ? MyGUI::IntSize{0, 0} : getTextSize();
}
void AutoSizedTextBox::setCaption(const MyGUI::UString& _value)

Loading…
Cancel
Save