Skip to content

CCEditBox position incorrect in a non-fullscreen CCNode. #2043

@heyfluke

Description

@heyfluke

let's see this situation:
a CCLayerColor set width to half screen width and position to the right side of the screen.
a CCEditBox called eb.
in CCLayerColor:
eb->setPosition(ccp(100,100));
addChild(eb)

We can see a eb's background picture in the correct position - CCLayerColor's (100,100),
but the Placeholder of eb is in the screen's (100,100).

this problem is caused by CCEditBox::m_pEditBoxImpl, it seems to be a external control which is not draw by cocos2d-x's drawing system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions