Merge pull request #1422 from albertgasset/MOBILE-2433

MOBILE-2433 core: Fix iframes in fullscreen mode
main
Juan Leyva 2018-07-24 12:49:17 +02:00 committed by GitHub
commit 799aff2f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View File

@ -832,3 +832,20 @@ body.keyboard-is-open core-ion-tabs .tabbar {
pointer-events: none;
}
}
// Fix iframes in fullscreen mode.
//
// Ionic sets "contain: strict" to some elements. This enables paint containment,
// which changes behaviour of fixed positioned elements and seems to break iframes
// in fullscreen mode. See https://www.w3.org/TR/css-contain-1/#containment-paint
ion-app,
ion-nav,
ion-tab,
ion-tabs,
.app-root,
.ion-page,
ion-modal,
.modal-wrapper,
.split-pane {
contain: size layout style;
}

View File

@ -43,7 +43,9 @@ core-ion-tabs, core-ion-tab {
width: 100%;
height: 100%;
overflow: hidden;
contain: strict;
// Do not use "contain: strict" so fullscreen iframes work.
contain: size layout style;
}
core-ion-tab {