Fixed iOS bug for Image Hotspots and iFrames

There is a bug in iOS with IFrame's that when changing orientation width: 100% stays at landscape rather than going back to portrait. https://bugs.webkit.org/show_bug.cgi?id=155198. Tested on iOS 10 iPhone 7 on image hotspot.
pull/36/head
Luke Muller 2017-03-10 12:31:20 +10:00 committed by GitHub
parent 16982c0207
commit 4999862689
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ div.h5p-fullscreen {
z-index: 20; z-index: 20;
} }
.h5p-iframe-wrapper iframe.h5p-iframe { .h5p-iframe-wrapper iframe.h5p-iframe {
width: 100%; width: 10px;
min-width: 100%;
*width: 100%;
height: 100%; height: 100%;
z-index: 10; z-index: 10;
overflow: hidden; overflow: hidden;