[
https://issues.apache.org/jira/browse/CB-6276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13938614#comment-13938614
]
Udo Schroeter commented on CB-6276:
-----------------------------------
I figured out why it happens. Might as well post it into this black hole here
in case anyone ever comes across this:
In CDVKeyboard.h there is this in line 202:
if ([[peripheralView description]
hasPrefix:@"<UIKBInputBackdropView"]) {
[[peripheralView layer] setOpacity:0.0];
}
It hides BOTH the layer under the keyboard and the layer under the toolbar.
Hence removing the layer under the keyboard turns it white in iOS 7.
To patch that up, just remove the top pane:
if ([[peripheralView description]
hasPrefix:@"<UIKBInputBackdropView"]) {
if (peripheralView.frame.origin.y == 0)
[[peripheralView layer] setOpacity:0.0];
}
> HideKeyboardFormAccessoryBar + KeyboardShrinksView = all-white keyboard
> background
> ----------------------------------------------------------------------------------
>
> Key: CB-6276
> URL: https://issues.apache.org/jira/browse/CB-6276
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.4.0
> Environment: ios7.1
> Reporter: Udo Schroeter
> Labels: ios7.1, keyboard-plugin
> Attachments: iOS Simulator Screen shot Mar 15, 2014, 11.05.25 AM.png
>
>
> Using the Cordova keyboard plugin, when turning on KeyboardShrinksView and
> HideKeyboardFormAccessoryBar together, the keyboard's background becomes
> white, so you get white keys on white background.
--
This message was sent by Atlassian JIRA
(v6.2#6252)