1) This link suggests to set contentSize (height =0) in order to achieve the text-wrapping effect for label.
2) Other option is RichText. Do, I really need RichText if I simply wants to have text-wrapping. I’m creating cards which have varied length of texts. So, I was wondering if I can simply use Label then why to use an extra library(RichText) which I am not using anywhere else in the code.
Also, how to get the height of the final wrapped text? want to use this to dynamically set the content size height of my card.
I’ve the same doubt as RichText: how to get the real content size? - cocos2d-x - Cocos Forums
And another post [Solved] RichText getContentSize() return (0, 0) - #6 by El_Jorge - JavaScript - Cocos Forums which seems to tackle it using scale which is not good idea since I’m keeping my front Size as 30.
Thanks ![]()
