Results 1 to 6 of 6

Thread: Selectfield Issue

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Ahmedabad, Gujarat, india
    Posts
    12
    Vote Rating
    0
      0  

    Default Selectfield Issue

    I have issue with sencha touch selecfield issue in iphone when orientation change. After select any option in selectfield if orientation change than it will move to up side of address bar.

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Posts
    8
    Vote Rating
    1
      0  

    Default

    I have the same problem with the datepicker as well. Does anyone have any idea?

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    8
    Vote Rating
    1
      0  

    Default

    You can see the Kitchen Sink, User Interface, Forms. In iphone click in birthday, after in sliders and change iphone orientation to simulate the bug.

  4. #4
    Sencha User
    Join Date
    Apr 2011
    Posts
    8
    Vote Rating
    1
      1  

    Default

    *sencha-touch-debug-w-comments.js

    I fixed the problem as follows:

    Ext.Viewport.scrollToTop method was implementation for the following phones apple:

    document.body.scrollHeight = document.body.scrollTop; // line 22756

    Change this line to

    document.body.scrollTop = 0; // line 22756

    and the problem was fixed.

  5. #5
    Sencha User
    Join Date
    Sep 2011
    Posts
    11
    Vote Rating
    1
      1  

    Default

    In version 1.1.0, to save hacking the core code, you can add this code in the same file as your Ext.Setup() function:

    Code:
    Ext.Viewport.scrollToTop = function() {
        if (Ext.is.iOS) {
            if (Ext.is.Phone) {
                //document.body.scrollTop = document.body.scrollHeight;  //this is the guilty line!
                document.body.scrollTop = 0;  //this is the only change to the core function
            }
        }
        else if (Ext.is.Blackberry) {
            window.scrollTo(0, 1000);
        }
        else {
            window.scrollTo(0, 1);
        }
    };

  6. #6
    Touch Premium Member Philip Murphy's Avatar
    Join Date
    Oct 2011
    Location
    Dublin, Ireland
    Posts
    28
    Vote Rating
    2
      0  

    Default

    @Rafael Neri and @goangus - major THANK YOU for this one - working perfectly.

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
  •