mirror of https://github.com/axmolengine/axmol.git
Merge pull request #9497 from Dhilan007/v3-game
Fixed content size of Label is incorrect after sets empty string.
This commit is contained in:
commit
6b18305550
|
@ -583,6 +583,7 @@ void Label::alignText()
|
||||||
{
|
{
|
||||||
if (_fontAtlas == nullptr || _currentUTF16String.empty())
|
if (_fontAtlas == nullptr || _currentUTF16String.empty())
|
||||||
{
|
{
|
||||||
|
setContentSize(Size::ZERO);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue