20 Mar 2012 1:15 PM #1
Unanswered: Text fields and scrolling
Has anyone figured out a good way to scroll the view when you click a text field (and the on-screen keyboard appears)?
In the iPhone's Safari browser, it seems to automatically resize and scroll the viewport so that the field is in view. But this means that if you have something like a toolbar docked at the bottom, it will move up above the keyboard, which you might not want.
On Android's browser, it doesn't scroll automatically, which means the field you're editing can be obscured by the keyboard.
Is there a good consistent way to handle this?
21 Mar 2012 5:05 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
iOS handles this pretty well bringing the field into view without messing with the layout of your app. Android is a pain in this area where you would have to move things to have the field come into view.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.