Results 1 to 2 of 2

Thread: Text fields and scrolling

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    443
    Answers
    5
    Vote Rating
    18
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •