From 4999862689de67a8e81042ad4ec7e1cd4666b280 Mon Sep 17 00:00:00 2001 From: Luke Muller Date: Fri, 10 Mar 2017 12:31:20 +1000 Subject: [PATCH] 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. --- styles/h5p.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/styles/h5p.css b/styles/h5p.css index cdf593a..cbc296a 100755 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -147,7 +147,9 @@ div.h5p-fullscreen { z-index: 20; } .h5p-iframe-wrapper iframe.h5p-iframe { - width: 100%; + width: 10px; + min-width: 100%; + *width: 100%; height: 100%; z-index: 10; overflow: hidden;