Skip to content

Simpler CCLabelTTF.getContentSize() fix #3407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 13, 2016

Conversation

ntrrgc
Copy link
Contributor

@ntrrgc ntrrgc commented Nov 9, 2016

See #3306 (review) for previous attempt.

@ntrrgc
Copy link
Contributor Author

ntrrgc commented Nov 9, 2016

OK, I see what's wrong with this: _contentSize is just used everywhere instead of getContentSize(), so fixing it there has little use...

pandamicro pushed a commit to pandamicro/cocos2d-html5 that referenced this pull request Dec 6, 2016
@pandamicro
Copy link
Contributor

Sorry for the delay, indeed there was some problem with the content size, especially when we want to get the bounding box, the result is always half the size.

I have merged you commit and fixed some issue in this commit: pandamicro@956b26e

Please take a look, I will first merge #3403, then send another pull request which include your pr and other improvements.

@pandamicro pandamicro merged commit 946367a into cocos2d:develop Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants