-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Banners Off-Screen if No Status Bar #26
Comments
Have you tested this in both portrait and landscape orientations? Also, please open a pull request with the fix. I'd like to see it use comparison to CGSizeZero as well. |
tested in portrait and landscape, seems good to me. I don't know if I like left some comments on the pull request with alternative ideas, I've only I pretty much created my github account to do this so let me know if I thanks! On Tue, Dec 9, 2014 at 2:36 PM, James Coleman [email protected]
|
CONFIRM: I have an AVCaptureSession with navigationbar && statusbar hidden. It is halfway off the screen. |
Issue is still there :-( |
@mnill Can you confirm that the suggested patch works? I'm actually about to finally transition back into iOS projects, so I'll be looking at this soon. |
I've tried out mnill's fix too, and it works! It would be great if you could pull the changes in, and update the pod. Thanks for your work - it's really awesome! :-) -Sridhar |
my app has the status bar hidden so (on iOS8 and possibly other versions), [[UIApplication sharedApplication] statusBarFrame].size returns (0, 0). This is causing JCNotificationPresenters to put the banner half off screen.
I don't have the time right now to fully understand this entire library to know if my change is good but for my purposes this is a quick-fix:
CGSize statusBarSize = [[UIApplication sharedApplication] statusBarFrame].size;
// AP: if the status bar is hidden it has size 0, so pretend it's the width of the display window
if(statusBarSize.width < 1) {
statusBarSize = CGSizeMake(window.bounds.size.width, statusBarSize.height);
}
The text was updated successfully, but these errors were encountered: