Merge pull request #9497 from Dhilan007/v3-game

Fixed content size of Label is incorrect after sets empty string.
This commit is contained in:
minggo 2014-12-16 09:48:36 +08:00
commit 6b18305550
1 changed files with 1 additions and 0 deletions

View File

@ -583,6 +583,7 @@ void Label::alignText()
{
if (_fontAtlas == nullptr || _currentUTF16String.empty())
{
setContentSize(Size::ZERO);
return;
}