diff --git a/js/h5p-confirmation-dialog.js b/js/h5p-confirmation-dialog.js index 22ca96c..a6dd998 100644 --- a/js/h5p-confirmation-dialog.js +++ b/js/h5p-confirmation-dialog.js @@ -352,7 +352,8 @@ H5P.ConfirmationDialog = (function (EventDispatcher) { * @param {number|null} minHeight */ this.setViewPortMinimumHeight = function(minHeight) { - document.body.style.minHeight = (typeof minHeight === 'number') ? (minHeight + 'px') : minHeight; + var container = document.querySelector('.h5p-container') || document.body; + container.style.minHeight = (typeof minHeight === 'number') ? (minHeight + 'px') : minHeight; }; }