HFJ-93: Removed check that prevents iframe from getting bigger than window.
parent
691a1c8be5
commit
a41a8f82f9
|
@ -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';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue