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

Jonathan Li commented on CB-9161:
---------------------------------

Testing on this issue shows the ipad pro webview multitask resizing issue is 
caused by statusbar plugin. The ios statusbar plugin currently uses the device 
screen bounds as the application's UI bounds, which will set the webview frame 
to the device screen bound by mistake when ipad pro is in splitview or 
slideview state.

After replacing the device screen bounds with the UIWindow bound, then the 
resizing works in ipad pro splitview and slideview as expected.

A pull request has been submitted for reference at 
https://github.com/apache/cordova-plugin-statusbar/pull/62
(only tested in the cordova project I am working on)

There maybe similar code in other plugins that still uses device screen bound 
as the application bounds, and they will also need to be updated to make ipad 
pro multitask slideview and splitview work. Actually, I wonder it is better to 
avoid explicitly setting the UIWebView's frame at all, and instead just 
defining the related constraints when creating the webview, and then let the 
ios auto layout to handle the webview resizing after statusbar or navigationbar 
state is changed by application's code.


> Support iPad multitasking in iOS 9
> ----------------------------------
>
>                 Key: CB-9161
>                 URL: https://issues.apache.org/jira/browse/CB-9161
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: iOS
>    Affects Versions: 4.0.0
>         Environment: iOS 9
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>              Labels: cordova-ios-5.0.x
>         Attachments: screenshot-1.png
>
>
> This is to support SlideOver and SplitView. Note that SplitView is only 
> supported on iPad Air 2.
> The three rules are:
> 1. Build your apps with the iOS 9 SDK
> 2. Support all orientations
> 3. Use Launch Storyboards
> We have 1 and 2 covered, but not 3.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to