Skip to content

Commit b1f94da

Browse files
committed
fix(platform): fullscreen method will not offset footer by 20px
1 parent 36eef9e commit b1f94da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/utils/platform.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@
331331
ionic.DomUtil.ready(function(){
332332
// run this only when or if the DOM is ready
333333
ionic.requestAnimationFrame(function(){
334+
// fixing pane height before we adjust this
335+
panes = document.getElementsByClassName('pane');
336+
for(var i = 0;i<panes.length;i++){
337+
panes[i].style.height = panes[i].offsetHeight+"px";
338+
}
334339
if(ionic.Platform.isFullScreen) {
335340
document.body.classList.add('fullscreen');
336341
} else {

0 commit comments

Comments
 (0)