1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-13 22:41:27 +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() MyGUI::IntSize AutoSizedTextBox::getRequestedSize()
{ {
return getTextSize(); return getCaption().empty() ? MyGUI::IntSize{0, 0} : getTextSize();
} }
void AutoSizedTextBox::setCaption(const MyGUI::UString& _value) void AutoSizedTextBox::setCaption(const MyGUI::UString& _value)