Skip to content

boundingBox property has wrong values when adding to node other than CCLayer #12

@mgrebenets

Description

@mgrebenets

Here's what I did - when doing same thing as in sample project, it works as expected.
In samples table view node is added as subview to CCLayer.

But everything goes amiss, when adding table view as a child to another CCNode.
My layout is as follows:
3 CCNode subviews are children of CCLayer

  • CCLayer
    • CCNode 1, rect=(0, 320, 320, 180)
    • CCNode 2, rect=(0, 160, 320, 180)
    • CCNode 3, rect=(0, 0, 320, 180)

Then I try to add SWTableView to CCNode 2
It is added, but it's bounding box size is wrong, while origin is still correct.
boundingBox size=(0.000000, 0.000000)
boundingBox origin=(0.000000, 160.000000)

I run this test in iPhone Simulator (both Retina and non-Retina have this error)
Cocos2D version is 1.0.1
Source downloaded from github 25 Jan 2012

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions