Projects > cpp > Issues > Bug #1381

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Different declaration on CCLayerColor::setContentSize

Bug #1381 [Closed] 2012-07-03 02:13 . Updated almost 12 years ago

See this issue
CCLayerColor::setContentSize(const CCSize& size) didn’t override CCNode::setContentSize(CCSize, size), which is declared as CC_PROPERTY(CCSize, m_tContentSize, ContentSize)

zhangxm 2012-07-09 08:54
  • Assignee set to mustime
zhangxm 2012-07-10 09:40
  • Status changed from New to Closed
zhangxm 2012-07-21 02:22
  • Status changed from Closed to In Progress

Now the resolution is change CCNode::setContentSize(CCSize &size) to CCNode::setContentSize(CCSize size).
I think we should change setContentSize(CCSize size) to setContentSize(CCSize &size) in subclass.

zhangxm 2012-08-06 06:15
  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
zhangxm 2012-08-16 03:01
  • Status changed from Resolved to Closed

Atom PDF

Start date:2012-07-03
Due date:
% Done:


Target version:cocos2d-2.0-x-2.0.2