Andarist / react-textarea-autosize

<textarea /> component for React which grows with content

Home Page:http://andarist.github.io/react-textarea-autosize/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Height on iOS Safari doesn't account for padding

alexb148 opened this issue · comments

On iOS Safari, if your textarea has 0 padding then this seems to work fine.

However, if your textarea has top or bottom padding, then the calculated height does not include the padding, meaning that the textarea ends up overflowing with a scrollbar.

This does not seem to happen on desktop Safari, just on mobile.

IMG_3579