fix(platform): fullscreen method will not offset footer by 20px

This commit is contained in:
Perry Govier
2014-09-09 17:05:03 -05:00
parent 36eef9e686
commit b1f94da27e

View File

@@ -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 {