1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 16:15:31 +00:00

Avoid height for empty message in AutoSizedTextBox

This commit is contained in:
CedricMocquillon 2020-12-04 22:28:36 +01:00
parent 6bfdf0e57f
commit 2d3d22025a

View file

@ -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)