void Widget::updateSizeAndPosition() 没有判断空指针
wenxue0501 opened this issue · 1 comments
wenxue0501 commented
void Widget::updateSizeAndPosition()
{
if (_parent) //空指针判断
{
Size pSize = _parent->getContentSize();
updateSizeAndPosition(pSize);
}
}