We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
pass CCSize(width,0) to CCLabelTTF cause the label invisible
pass CCSize(width,0) to CCLabelTTF cause the label invisible
Bug #738 [Closed]
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:a0dae03b1e6a1df1e0ada35a76b2dde68e7d3525.
- Project changed from cocos2d-x to cpp
- Category deleted (
1) - Target version deleted (
cocos2d-1.0.1-x-0.9.2)
Status: | Closed | |
---|---|---|
Start date: | 2011-09-25 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 100% |
|
Category: | - | |
Target version: | - |
Reported by Dskobg on QQ.
As this document [[How does CCLabelTTF support line breaks and wrapping]] described, it said that CCLabelTTF can calculate the height automatically when use CCSize(width,0) as initial parameter. But as the matter of fact, CCSize(width, 0) causes the label invisible.
I tried to modify these lines in CCImage_ios.mm
to
Now it can works as the wiki described.