I m using
to activate/deactivate full screen mode in my app
there is a bug in the showStatusBar (
https://github.com/driftyco/ionic/issues/702) when running on the device or in ios simulator, every time you go in or out, the view height gets bigger and bigger and the footer becomes unvisible…
Any idea whats going on?
I’ve seen this before. I think it actually is an issue with the Cordova StatusBar plugin itself.
Thanks. Do you know where i could find more info? i cant seem to google that particular issue…
It would be a very ugly hack, but you might consider a page reload.
Even if it’s not a permanent solution, could you try it as a test after toggling fullSCreen ?
i dont think it helps because i get stuck in a loop if i call the window.location.reload() after each toggle. the fullscreen class is not applied to the body anymore after a reload, so i dont have a way to know if i should could the toggle or not …
ok i cached a fullscreen flag in the localstorage to prevent the loop, but even after a window.location.reload the viewport height is wrong…
Ok i found the solution. there is indeed a bug in the status bar plugin
See this commit
09:49AM - 06 Feb 14 UTC
Ups, previous commit added check in the wrong place. Again: only add to height if status bar did not overlay
Nothing to do with ionic