1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    309
    Vote Rating
    14
    Answers
    3
    jweber will become famous soon enough

      0  

    Default Unanswered: Text fields and scrolling

    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?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    436
    Answers
    3108
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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 Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread