cocos2d-x Richtext Real Height by content size

hi
i am developing a chatbox using cocos2d-x (c++) so the best textbox for mixed sentences with stickers is richtext…
as you know, one of the most important settings for chat item texts is word wrap, so the setting content size like Size(500,0) and setting ignoreContentAdaptWithSize(false) will help us to make it word wrap but i can’t trace it’s real height because it will shows the content size (500,0) forever…
in other words, growing the height of chat container will need to knowing the size of word wrap richtext and i can’t trace it’s true (real) size because it will show me just last adjusted content size!
thanks a lot…

so I think there is no way to solving this problem…am i right? :confused:

@ricardo
@owen
Could you please take a look?

1 Like

I don’t know the answer but my suggestion is that you try the new features that were added recently in github.
Just run “cpp-tests” and run tests “53 - Node: UI” -> “1 - GUI Dynamic Create Test” -> “19: Rich Text test”.

or just take a look at the test source code:

or at the richtext implementation:

thanks.

1 Like

thanks a lot… i will try it as soon as i can…and good luck…