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

Width is not calculated correctly on font-size change #179

Open
Nases opened this issue Dec 15, 2020 · 2 comments
Open

Width is not calculated correctly on font-size change #179

Nases opened this issue Dec 15, 2020 · 2 comments

Comments

@Nases
Copy link

Nases commented Dec 15, 2020

Anything more than font-size: 14 makes the width come short.
Example input style:

inputStyle={{
   fontSize: 20,
}}
@Nases
Copy link
Author

Nases commented Dec 15, 2020

So apparently size is calculated using the sizer's ref div.
But inputStyle does not change sizer's font-size.

@Nases
Copy link
Author

Nases commented Dec 15, 2020

Since inputStyle does not change sizer's font size we either need to change className or style of AutosizeInput in order to get correct results.

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