cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

cc.EditBox broken in rc2 #700

Closed llnek closed 10 years ago

llnek commented 10 years ago

Resizing causes the editbox to incorrectly position.

For example, if the editbox is set to be positioned at (200,200), the actual text position will be incorrect. However, the underlying scale9sprite is correctly placed.

Switching back to rc1 will work correctly - hence something is broken in rc2.

VisualSJ commented 10 years ago

Hi @llnek

I saw this problem yesterday . It is there when the screen scaling, background dislocation. I do not know whether it same as this...

you can try it: https://github.com/cocos2d/cocos2d-html5/commit/decbe76ab453ad70a661d85dcea6a03c46fe7820

If the problem persists, please tell me again...

Thanks for your feedback... ^.^

VisualSJ

llnek commented 10 years ago

Hi VisualSJ,

I just tried your fix, and yes, that seemed to have corrected the problem.

Thanks llnek.

On Aug 14, 2014, at 2:48 AM, SijieWang notifications@github.com wrote:

Hi @llnek

Yesterday I saw the problem. It is there when the screen scaling, background dislocation. I do not know whether it same as this...

you can try it: cocos2d/cocos2d-html5@decbe76

If the problem persists, please tell me again...

Thanks for you feedback... ^.^

VisualSJ

— Reply to this email directly or view it on GitHub.