[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13770244#comment-13770244
 ] 

Shazron Abdullah commented on CB-3020:
--------------------------------------

Ok fixed the white area, additionally in CDVViewController.m:

{code}
- (void)keyboardWillShowOrHide:(NSNotification*)notif
{
    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) {
        newFrame.size.height -= keyboardFrame.size.height;
        if (!(IsAtLeastiOSVersion(@"7.0"))) {
            self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 
-keyboardFrame.size.height, 0);
        }
    } else {
        self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
    }
    self.webView.frame = newFrame;
}

{code}

Will patch it soon. Note that with KeyboardShrinksView to true, the area where 
the accessorybar is supposed to be, no touches are recorded.
                
> HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
> of removing it
> ------------------------------------------------------------------------------------------
>
>                 Key: CB-3020
>                 URL: https://issues.apache.org/jira/browse/CB-3020
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.6.0, 3.0.0
>         Environment: ios 6.1.3
>            Reporter: Horst Perfect
>            Assignee: Shazron Abdullah
>            Priority: Minor
>              Labels: bug, ios, ios6.1.3
>
> I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
> KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
> appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
> This is just happening when i set *both* of the preferences to true. When i 
> just set the AccessoryBar preference to true the bar disappears as planned.
> Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to