fix content Size

This commit is contained in:
andyque 2014-07-01 21:02:37 +08:00
parent bf60cc5f83
commit 7d2685ba02
1 changed files with 3 additions and 1 deletions

View File

@ -264,7 +264,9 @@ namespace cocostudio
widget->setColor(_color);
widget->setOpacity(_opacity);
//the setSize method will be conflict with scale9Width & scale9Height
widget->setSize(Size(_width, _height));
if (!widget->isIgnoreContentAdaptWithSize()) {
widget->setSize(Size(_width, _height));
}
widget->setPosition(_position);
widget->setAnchorPoint(_originalAnchorPoint);
}