Merge branch 'master' of ssh://stash.amendor.com:7999/h5p/h5p-core-php

namespaces
Frank Ronny Larsen 2013-12-18 11:33:17 +01:00
commit 925e6c73f9
1 changed files with 0 additions and 4 deletions

View File

@ -117,10 +117,6 @@ H5P.fullScreenIframe = function (contentId, obj, exitCallback, $body) {
*/ */
H5P.resizeIframe = function (contentId, height) { H5P.resizeIframe = function (contentId, height) {
var iframe = document.getElementById('h5p-iframe-' + contentId); 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'; iframe.style.height = (H5P.isFullscreen) ? '100%' : height + 'px';
}; };