cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From goshakkk <...@git.apache.org>
Subject [GitHub] cordova-plugin-statusbar pull request: Handle extended status bar ...
Date Thu, 07 Apr 2016 14:09:18 GMT
Github user goshakkk commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-statusbar/pull/55#discussion_r58876986
  
    --- Diff: src/ios/CDVStatusBar.m ---
    @@ -457,6 +457,14 @@ -(void)resizeWebView
                 frame.origin.y = statusBarFrame.size.height;
                 frame.size.height -= statusBarFrame.size.height;
                 self.webView.frame = frame;
    +        } else {
    +            // even if overlay is used, we want to handle in-call/recording/hotspot larger
status bar
    +            CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame;
    +            statusBarFrame = [self invertFrameIfNeeded:statusBarFrame];
    +            CGRect frame = self.webView.frame;
    +            frame.origin.y = statusBarFrame.size.height - 20;
    +            frame.size.height -= statusBarFrame.size.height - 20;
    --- End diff --
    
    Might be slightly hacky, but is there a better way?..


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message