You found a bug! We've classified it as TOUCH-4918 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #11
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    101
    Vote Rating
    2
    froamer is on a distinguished road

      0  

    Default Safari fixed by 2.3 but not when added to home screen

    Safari fixed by 2.3 but not when added to home screen


    I upgraded to Touch 2.3.0 which seems to fix the keyboard issue in iOS7 Safari but it doesn't fix it if you add the page to the Home Screen.

    @Keab42 - When you say 2.3.0 fixed it do you mean in Safari, Added to the Home Screen or when published as a native app?
    Chris Copleston » Managing Director | LinkedIn | Twitter | SenchaDevs
    4dprime.com » web | mobile | desktop | server development

  2. #12
    Sencha User
    Join Date
    Feb 2013
    Posts
    16
    Vote Rating
    1
    Keab42 is on a distinguished road

      0  

    Default


    Terribly sorry, should have made that clearer.

    For me it's fixed when built as a native app using Xcode 5 and iOS 7 SDK.

  3. #13
    Sencha Premium Member froamer's Avatar
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    101
    Vote Rating
    2
    froamer is on a distinguished road

      0  

    Default


    Thanks for clarifying @Keab42. For me at least it is still broken when you add a web app to the iOS7 home screen.
    Chris Copleston » Managing Director | LinkedIn | Twitter | SenchaDevs
    4dprime.com » web | mobile | desktop | server development

  4. #14
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    62
    Vote Rating
    0
    info@ferraresegroup.com is on a distinguished road

      0  

    Default Any fix?

    Any fix?


    I found the same problem in Touch 2.3.0, tabBar pushed up when keypad is visible and next's button action don't follow the form.
    If we have a form with a lot of field, with next button the form don't scroll down, so next fields are hide down the keypad.

    Only with iOS7.

    Any fix?
    Luca

  5. #15
    Sencha User
    Join Date
    Jun 2012
    Posts
    5
    Vote Rating
    0
    ampamo is on a distinguished road

      0  

    Default Same issue

    Same issue


    I'm having the same issue:

    http://www.sencha.com/forum/showthread.php?274417

  6. #16
    Sencha User
    Join Date
    Feb 2013
    Posts
    4
    Vote Rating
    0
    Max0n is on a distinguished road

      0  

    Default


    Same is happening here... again using ST2.3, Cordova 3.1, iOS SDK7.0 as native app.

    The strange thing is that after playing around with with the KeyboardShrinksView setting in Xcode it didn't happen for a while. After testing the app for several minutes though it reoccured and everything docked to the bottom got pushed up by the soft keyboard again - without moving the above ui up. If you then close the soft keyboard the view is somewhat shifted to the top (approx. by the amount of the keyboards height). Once that has happened you are not able to scroll the view to the top and you will see an empty area at the bottom.

    I am guessing that the bug is somewhere in the mechanics to push the the rest of the view up (probably using css transform) rather then the behaviour of the bottom bar.

    I have seen similar unpredictable things in the past in Android hybrid apps - which was usually related to hardware accelerated renderings within the web view (e.g. css transformations). I am also occasionally noticing other minor glitches in iOS SDK7.0 hybrid apps - for example ui elements shortly showing through elements that are in higher view hierarchy.

    Did Apple maybe unpimp the web view that's being used by Cordova?

  7. #17
    Sencha User
    Join Date
    Aug 2012
    Location
    Vancouver, Canada
    Posts
    29
    Vote Rating
    1
    trevorcox is on a distinguished road

      0  

    Default


    Great to hear that this is resolved in 2.3.?, but for those of us unable to upgrade to due critical new defects introduced in 2.3.0/2.3.1 (TOUCH-5163, TOUCH-4982 and more in my case), a fix for 2.2 is needed.

  8. #18
    Sencha User
    Join Date
    Oct 2013
    Location
    France
    Posts
    32
    Vote Rating
    0
    maxusn is on a distinguished road

      0  

    Default


    Hi, i have the same problem with Android 4.1.2 : the Keyboard push TabBar up.I tried with ST 2.2 and 2.3 it's the same problemAny issue ?

  9. #19
    Sencha Premium Member
    Join Date
    Apr 2013
    Location
    United States
    Posts
    4
    Vote Rating
    0
    sanjivkb@collabera.com is on a distinguished road

      0  

    Default Quick Fix

    Quick Fix


    Hi,

    I am on Sencha Touch 2.0.2 + PhoneGap 2.2. I upgraded to PhoneGap 2.9.

    Fix is discussed here in JIRA forum - https://issues.apache.org/jira/browse/CB-3020

    Incase of error due to Copy/Paste, plz refer https://gist.github.com/cemerson/6642026

    For my case - I upgraded PhoneGap to 2.9 and Applied this quick fix discussed in JIRA.

    Update CDVViewController.m [it is under Proj_Home /CordovaLib/Classes]

    // iOS 7 fix - Bug with IOS7 and Cordova's KeyboardShrinksView flag not working right.

    - (void)keyboardWillShowOrHideNSNotification*)notif {

    // Ignore this conditional statement and just assume KeyboardShrinksView=true
    // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) {
    // return;
    // }
    BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification];
    CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue];
    keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil];
    CGRect newFrame = self.view.bounds;
    if (showEvent) {
    // Add, don't subtract, the keyboard height to webview frame
    // newFrame.size.height -= keyboardFrame.size.height;
    newFrame.size.height += keyboardFrame.size.height;
    // don't allow frame height to exceed 1024 (iPad)
    if(newFrame.size.height > 1024) newFrame.size.height = 1024;
    self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); //-keyboardFrame.size.height, 0);
    [webView stringByEvaluatingJavaScriptFromString:@"toggleKeyboardVisibleClass()"];
    } else {
    self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
    [webView stringByEvaluatingJavaScriptFromString:@"toggleKeyboardVisibleClass('OFF')"];
    }
    // NSLog(@"keyboardWillShowOrHide() [webView height:%f | keyboardFrame height:%f]",newFrame.size.height, keyboardFrame.size.height);

    // this seems to be needed every pass otherwise the device (iPad)
    // starts shrinking the webview again
    self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
    self.webView.frame = newFrame;
    }

  10. #20
    Sencha User
    Join Date
    Feb 2014
    Location
    Madrid, Spain
    Posts
    11
    Vote Rating
    0
    egomezd is on a distinguished road

      0  

    Default


    I am using Sencha Touch 2.3.1 and I have no problems with IOS 7 but in Android 4.1.2 the problem remains and I don´t know how to fix it.

    Anyone knows a workaround for this?