cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Wilson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it
Date Mon, 23 Sep 2013 17:53:04 GMT

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

Tom Wilson commented on CB-3020:
--------------------------------

Doing some reading here..
https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/UIScrollView_pg/CreatingBasicScrollViews/CreatingBasicScrollViews.html

It looks like you need to set scrollView.contentSize to the size of the scrollable window
which would be the height of your Dom window.  This should work find if your body is always
100% of the device width, but when it overflows, then it screws it up.

ex)
scrollView.contentSize=CGSizeMake(320,758);  // 320 = width, 758 = height of scrollable content
self.view=scrollView;

CGRect newFrame = self.view.bounds;
self.webView.frame = newFrame;  // new frame = size of frame

Does this make sense?
                
> 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

Mime
View raw message