Results 1 to 2 of 2

Thread: Text fields and scrolling

  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    447
    Answers
    5
    Vote Rating
    19
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,060
    Answers
    3976
    Vote Rating
    1389
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •