From a41a8f82f9eb592be9236fb0f523133c8fda6f18 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 13 Dec 2013 14:26:36 +0100 Subject: [PATCH] HFJ-93: Removed check that prevents iframe from getting bigger than window. --- js/h5p.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index e6244b9..813b714 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -117,10 +117,6 @@ H5P.fullScreenIframe = function (contentId, obj, exitCallback, $body) { */ H5P.resizeIframe = function (contentId, height) { var iframe = document.getElementById('h5p-iframe-' + contentId); - // Don't allow iFrame to grow beyond window height; - if (height > window.innerHeight) { - height = window.innerHeight; - } iframe.style.height = (H5P.isFullscreen) ? '100%' : height + 'px'; };