diff --git a/cocos/2d/CCLabelTTF.cpp b/cocos/2d/CCLabelTTF.cpp index 63acc40e11..e55a957768 100644 --- a/cocos/2d/CCLabelTTF.cpp +++ b/cocos/2d/CCLabelTTF.cpp @@ -280,7 +280,8 @@ const Size& LabelTTF::getContentSize() const Rect LabelTTF::getBoundingBox() const { - return _renderLabel->getBoundingBox(); + const_cast(this)->setContentSize(_renderLabel->getContentSize()); + return Node::getBoundingBox(); } #if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))