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

keyboard will cover the textarea in Safari (IPHONE 5) #198

Open
frogfrankyfrog opened this issue Feb 2, 2015 · 2 comments
Open

keyboard will cover the textarea in Safari (IPHONE 5) #198

frogfrankyfrog opened this issue Feb 2, 2015 · 2 comments

Comments

@frogfrankyfrog
Copy link

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!

@couraud
Copy link

couraud commented Feb 5, 2016

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

@jackmoore
Copy link
Owner

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.

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

3 participants