We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Most of it from: http://discuss.cocos2d-x.org/t/does-richtext-support-multiple-line-of-text/21105/9
It only handles a element "\n", when it is in the middle of the text all element goes crazy.
The text was updated successfully, but these errors were encountered:
On JS this code has show some efficiency:
at line 400 on UIRichText.js
if(text.indexOf("\n") > -1) { //String contains \n var leftLength = text.indexOf("\n")+2; var leftWords = text.substr(0, leftLength -2); var cutWords = text.substr(leftLength, text.length - 1);
this._handleTextRenderer(leftWords.substr(0, leftLength), fontNameOrFontDef, fontSize, color); this._addNewLine(); this._handleTextRenderer(cutWords, fontNameOrFontDef, fontSize, color); return; }
Sorry, something went wrong.
@pekayatt what's the error behavior? how can i reproduce it?
No branches or pull requests
Most of it from:
http://discuss.cocos2d-x.org/t/does-richtext-support-multiple-line-of-text/21105/9
It only handles a element "\n", when it is in the middle of the text all element goes crazy.
The text was updated successfully, but these errors were encountered: