[jira] [Commented] (CB-6276) HideKeyboardFormAccessoryBar + KeyboardShrinksView = all-white keyboard background

2014-03-17 Thread Udo Schroeter (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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)


[jira] [Commented] (CB-6276) HideKeyboardFormAccessoryBar + KeyboardShrinksView = all-white keyboard background

2014-03-15 Thread Udo Schroeter (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13936108#comment-13936108
 ] 

Udo Schroeter commented on CB-6276:
---

It should be mentioned that the same effect happens when I use the 
Keyboard.hideFormAccessoryBar(true) and Keyboard.shrinkView(true) API calls. 
Otherwise the keyboard plugin works fine, it's just this background color issue.

 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
Priority: Minor
  Labels: ios7.1, keyboard-plugin

 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)