[
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772949#comment-13772949
]
Chris Emerson commented on CB-3020:
-----------------------------------
Hey guys - I'm using (and need) the following to work: <preference
name="KeyboardShrinksView" value="false"/>.
I tried the above stuff and something a guy put here:
https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff
but nothing got things working for me. By "working" I mean I *DON'T* want the
keyboard to shrink my view when it appears ... which is what I need 99.5% of
the time.
I think I have a working (hack) fix if anyone wants to try/test. All I did was
comment out the first 3 lines of the keyboardWillShowOrHide method - after
doing that the keyboard stopped shrinking my view - Yay! If anyone
tests/confirms the same on their end please let me know.
{code:title=CDVViewController.m}
- (void)keyboardWillShowOrHide:(NSNotification*)notif
{
// /* Hack: Ignore this conditional statement and just assume
KeyboardShrinksView=true */
// if (![@"true" isEqualToString :[self
settingForKey:@"KeyboardShrinksView"]]) {
// return;
// }
{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