Skip to content

Commit

Permalink
fix(platform): fullscreen method will not offset footer by 20px
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygovier committed Sep 9, 2014
1 parent 36eef9e commit b1f94da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/utils/platform.js
Expand Up @@ -331,6 +331,11 @@
ionic.DomUtil.ready(function(){
// run this only when or if the DOM is ready
ionic.requestAnimationFrame(function(){
// fixing pane height before we adjust this
panes = document.getElementsByClassName('pane');
for(var i = 0;i<panes.length;i++){
panes[i].style.height = panes[i].offsetHeight+"px";
}
if(ionic.Platform.isFullScreen) {
document.body.classList.add('fullscreen');
} else {
Expand Down

0 comments on commit b1f94da

Please sign in to comment.