Skip to content
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

textWrap={true} doesn't respect linebreaks #277

Open
justusmattern27 opened this issue Sep 10, 2024 · 0 comments
Open

textWrap={true} doesn't respect linebreaks #277

justusmattern27 opened this issue Sep 10, 2024 · 0 comments

Comments

@justusmattern27
Copy link
Member

When using textWrap={true} inside a <Txt/> node, linebreaks set with \n are simply ignored. To reproduce, add something like this to your scene:

view.add(<Txt text="This is an example text with\na linebreak" textWrap={true} />);
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

No branches or pull requests

1 participant