Andarist / react-textarea-autosize

<textarea /> component for React which grows with content
http://andarist.github.io/react-textarea-autosize/
MIT License
2.22k stars 246 forks source link

Fix scrollbar on mobile issue #333 #351

Open gry-dmitrij opened 1 year ago

gry-dmitrij commented 1 year ago

scrollHeight is rounded. So when scrollHeight is float scrollbar shows on the chrome mobile browser even if there is nowhere to scroll to. I found only one way: increase the scroll by 1 px

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: 9d86b06d4cbe4dae8a92cce602546e3ade26691e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

knownasilya commented 1 year ago

Would love to see this merged

knownasilya commented 1 year ago

Any chance this can get merged?

gry-dmitrij commented 1 year ago

If urgently needed, I posted the changes here