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
Lockwindow got wrong size make my app lockScreen UI abnormal #1492
Comments
Hi @84798012, unfortunately, it's difficult to tell what is happening in this issue. Could you do something similar with reproduction steps on the example app, and/or an example app like you did for the previous issue? We cannot remove the code you mentioned or else rotation won't work correctly for some apps. It seems like you're using a custom lock screen, so it may be an issue with your constraints? |
I made a demo to reproduce this issue, please check below link: |
Thanks. And what I suggest is that : in SDL to get app window and operate it is dangerous, it may cause potential issue. // dangerous |
@84798012 Unfortunately, because we have to make the lockWindow the |
@joeljfischer , ok, Thanks for your reply. |
fixed, so close it. |
I have test on 1509, the issue fixed. Thanks! |
Bug Report
[Summary]
When car in moving mode, my app lock screen UI shows the lockScreen image on top left corner.
But when using SDL v6.3.1, no this issue.
The root cause may as below. If I remove the code like below, sometimes can work well, sometimes not work. If recover those code, lockScreen UI always not work.
@implementation SDLLockScreenViewController
//- (BOOL)shouldAutorotate {
// if (self.presentingViewController != nil) {
// return self.presentingViewController.shouldAutorotate;
// } else {
// return YES;
// }
//}
//
//- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
// if (self.presentingViewController != nil) {
// return self.presentingViewController.supportedInterfaceOrientations;
// } else {
// return UIInterfaceOrientationMaskAll;
// }
//}
OS & Version Information
13.1.3
6.4.1
Here is the issue's screenshot link:
https://github.com/84798012/SDL_Window_Rotate_Bug_Reproduce_Demo/blob/master/WechatIMG1.jpeg
The text was updated successfully, but these errors were encountered: