mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(platform): fullscreen method will not offset footer by 20px
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user