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:
parent
6bfdf0e57f
commit
2d3d22025a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue