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

Changing whiteSpace breaks bestFit: 'shrink' #283

Open
SinanAkkoyun opened this issue Jan 14, 2025 · 1 comment
Open

Changing whiteSpace breaks bestFit: 'shrink' #283

SinanAkkoyun opened this issue Jan 14, 2025 · 1 comment

Comments

@SinanAkkoyun
Copy link

Hi :) Setting whiteSpace to for example pre or nowrap breaks the bestFit: 'shrink' scaling on Text

#166 (comment)

Demo:
https://codesandbox.io/p/sandbox/natural-width-forked-h88yz7
(Change line 44 to see the issue)

@SinanAkkoyun
Copy link
Author

I've also noticed that despite setting breakOn exclusively to '\n', in pre-wrap or any whiteSpace it will still break on anything (for example for a long string of numbers it will just break whereever)

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