autosize icon indicating copy to clipboard operation
autosize copied to clipboard

keyboard will cover the textarea in Safari (IPHONE 5)

Open frogfrankyfrog opened this issue 10 years ago • 2 comments

Hello, I click on the text area in safari, the keyboard comes up. At first, it is OK! The textarea will autosize by typing. But, when textarea is bigger than screen, that will be covered with keyboard. Every word that i type can't be seen (cursor also), and the textarea still autosize in back of keyboard. What can i do to solve this problem ? The words that i type can be seen in the screen without covering with keyboard ? BTW, my English is not very strong, sorry! Thank you!

frogfrankyfrog avatar Feb 02 '15 15:02 frogfrankyfrog

+1 I found this happening too, on an iPad Mini 2 running iOS 8.3. It causes all kinds of odd scrolling issues.

couraud avatar Feb 05 '16 12:02 couraud

Sorry, I don't know of anything that can be done about this with Autosize's current approach to resizing the textarea element. The alternative approach would be to create a mirrored textarea element offscreen, but that has it's own issues with accuracy.

My suggestion would be to not assign autosize for small screens (or maybe just iOS). A Quick look suggests Github handles this comment area this way; it allows some expansion of the textarea for desktop browsers, but disabled based on userAgent.

I may look into disabling autosize automatically, not sure yet what that should be based on though.

jackmoore avatar Feb 09 '16 07:02 jackmoore