mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Avoid height for empty message in AutoSizedTextBox
This commit is contained in:
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…
x
Reference in New Issue
Block a user