-
Notifications
You must be signed in to change notification settings - Fork 339
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
[BUG] Using StatusBarBehavior does not display the status bar as intended after screen rotation on iOS. #1193
Comments
I found the solution for this issue.
Below is the execution result. [iOS] iPad.10th.generation.iOS.16.4.2023-06-14.17-11-36.mp4Could you please check if there is any problem with the solution described above? |
Based on this post, I will reconsider the solution again. |
I changed the solution as below. [StatusBar.shared.cs]
[StatusBar.ios.cs]
[StatusBar.android.cs]
[StatusBar.macos.cs]
[StatusBar.net.cs]
[StatusBar.tizen.cs]
[StatusBar.windows.cs]
[StatusBarBehavior.shared.cs]
If you call the SetColor and SetLayout methods of StatusBar when rotating, I defined an UpdateBarSize method in shared and implemented a PlatformUpdateBarSize Since I do not have a simulator prior to iOS 13 in my execution environment,
Below is the execution result. [iOS 16.4] iPad.10th.generation.iOS.16.4.2023-06-15.13-01-13.mp4[iOS 15.5] iPad.9th.generation.iOS.15.5.2023-06-15.13-18-40.mp4[iOS 14.5] iPad.8th.generation.iOS.14.5.2023-06-15.13-58-52.mp4[iOS 13.7] iPad.7th.generation.iOS.13.7.2023-06-15.14-39-01.mp4The video is a recording of the following steps.
The color of the status bar is changed at both the page transition source and the page transition I will create a PR, so could you please check it? |
Has this fix been released? Can't find in release notes @cat0363 @VladislavAntonyuk |
@vallgrenerik Here's a quick pro tip for GitHub to find out if a commit has been released:
To answer your question, yes the PR containing this bug fix was included in v6.0.0 |
Thank you @brminnick! Appreciate the pro tip! ⭐👏 |
@brminnick So how come it is still present in 7.0.1? |
Hi, if you've uncovered a bug, please report a new issue that includes a reproduction sample. If you know how to fix it, please submit a Pull Request. |
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
To reproduce the problem, layout as below.
If the screen orientation is portrait, there is no problem.
When changing the screen orientation from portrait to landscape, the status bar remains at the top of the screen.
Then quit the app completely.
If the screen orientation is landscape, there is no problem.
The status bar disappears when the screen orientation is changed from landscape to portrait.
This issue was previously reported as Issue #637, but was already closed.
For this reason, I have opened a new issue.
Any good ideas? Thank you.
Expected Behavior
I expected the status bar to disappear at the top of the screen when the screen orientation changed from portrait to landscape.
I expected the status bar at the top of the screen to appear when the screen orientation changed from landscape to portrait.
Steps To Reproduce
The steps to reproduce are as follows.
In step 2., the status bar remains displayed at the top of the screen.
In step 5., the status bar remains hidden.
Link to public reproduction project repository
https://github.com/cat0363/MauiComm-IssueStatusBar.git
Environment
Anything else?
None
The text was updated successfully, but these errors were encountered: