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

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

CDVViewController.m
{code}
- (void)hideKeyboardFormAccessoryBar
{
    NSArray* windows = [[UIApplication sharedApplication] windows];

    for (UIWindow* window in windows) {
        for (UIView* view in window.subviews) {
            if ([[view description] hasPrefix:@"<UIPeripheralHostView"]) {
                for (UIView* peripheralView in view.subviews) {

                    // hides the backdrop (iOS 7)
                    if ([[peripheralView description] 
hasPrefix:@"<UIKBInputBackdropView"]) {
                        [[peripheralView layer] setOpacity:0.0];
                    }
                    
                    // hides the accessory bar
                    if ([[peripheralView description] 
hasPrefix:@"<UIWebFormAccessory"]) {
                        // remove the extra scroll space for the form accessory 
bar
                        CGRect newFrame = self.webView.scrollView.frame;
                        newFrame.size.height += 
peripheralView.frame.size.height;
                        self.webView.scrollView.frame = newFrame;

                        // remove the form accessory bar
                        [peripheralView removeFromSuperview];
                    }
                    // hides the thin grey line used to adorn the bar (iOS 6)
                    if ([[peripheralView description] 
hasPrefix:@"<UIImageView"]) {
                        [[peripheralView layer] setOpacity:0.0];
                    }
                }
            }
        }
    }
}
{code}
                
> 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