You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on May 4, 2022. It is now read-only.
Screen jumps up on Android when hiding status bar #161
When opening an image in a full screen modal, we are hiding the status bar using the status bar plugin as follows:
if (window.StatusBar) {
if (window.StatusBar.isVisible) {
window.StatusBar.hide();
}
}
On Android, the whole screen jumps up shortly to fill the new available space as the status bar isn't there anymore before it is resized to the new screen dimensions without the status bar.
This actually happens when not opening any modal window. Just hiding the status causes the screen to jump.
What behaviour are you expecting?
There should be no jumping of the screen.
Steps to reproduce:
In any Ionic app using the status bar plugin, hide the status bar and you will see the issue described
if (window.StatusBar) {
if (window.StatusBar.isVisible) {
window.StatusBar.hide();
}
}
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Activity
jgw96 commentedon Jan 13, 2017
From @tooraje on May 20, 2016 12:50
I have the same problem on Android. Even I am using a different method to hide the status bar. I add this line to config.xml:
<preference name="Fullscreen" value="true" />And screen jumps up to go hide status bar and full screen.
jgw96 commentedon Jan 13, 2017
From @zgulser on August 22, 2016 9:57
Try using LAYOUT flags available through either window manager or system ui visibility flags, to avoid such jumping or resizing.