cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Redding (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10288) statusbar plugin interaction with iOS multitasking
Date Sun, 31 Jan 2016 22:33:39 GMT

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

Nick Redding commented on CB-10288:
-----------------------------------

No, that has no effect on the problem.

I've discovered that what seemed to be a solution (commenting out the
NSNotificationCenter statement) is not a solution. This  is a
viewController issue that is probably a bug on Apple's end.

Typically, pulling in the cordova app in from the multitasking bar causes
the UIWebView to report bogus widths (and render according to those
widths).

What happens is when the app is brought into the initial (narrow) viewport,
the UIWebView reports its width as the width of the device (e.g. 1024 for
an iPad in landscape). Then as the viewport is expanded, the increase in
width is added to the initial width which was wrongly set as 1024--hence
bogus too-wide widths reported as the viewport is expanded horizontally.

Same thing in portrait mode--the initial width is the full screen width.

I don't believe this is a problem if the statusbar plugin is omitted, or if
it is included but "status bar overlays webview" is set. It's only a
problem when we don't want the status bar to overlay the webview (and
frankly, for most apps, I don't know why we would want it to overlay the
webview).



On Sun, Jan 31, 2016 at 1:56 PM, jcesarmobile (JIRA) <jira@apache.org>



> statusbar plugin interaction with iOS multitasking
> --------------------------------------------------
>
>                 Key: CB-10288
>                 URL: https://issues.apache.org/jira/browse/CB-10288
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Statusbar
>         Environment: cordova ios 4.0.0
>            Reporter: Nick Redding
>            Assignee: jcesarmobile
>              Labels: cordova-ios-4.1.0, ios, triaged
>
> In pluginInitialize the statement
> [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(statusBarDidChangeFrame:)
name: UIApplicationDidChangeStatusBarFrameNotification object:nil];
> causes incorrect rendering behavior when using iOS multitasking split window. When pulling
the cordova app onto the screen from the right, the window resizing is not handled correctly
(much larger widths thsn actual are reported and reflected in the rendering).
> Commenting out this statement eliminates the problem, but it is not clear what the potentially
unwanted effects of this would be.



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

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


Mime
View raw message