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]
walzer@cocos2d-x.org 2012-07-03 02:13 . Updated over 2 years ago

See this issue https://github.com/cocos2d/cocos2d-x/issues/1079
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

Status:Closed
Start date:2012-07-03
Priority:Normal
Due date:
Assignee:mustime
% Done:

100%

Category:all
Target version:cocos2d-2.0-x-2.0.2

Copyright © 2010 - 2014 Cocos2d-x.org Support Email: support@cocos.org