diff --git a/js/h5p.js b/js/h5p.js index 7f63c1f..f7a3937 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -955,6 +955,7 @@ H5P.Dialog = function (name, title, content, $element) { $dialog.addClass('h5p-open'); // Fade in // Triggering an event, in case something has to be done after dialog has been opened. H5P.jQuery(self).trigger('dialog-opened', [$dialog]); + H5P.instances[0].trigger('resize'); }, 1); }; @@ -965,6 +966,7 @@ H5P.Dialog = function (name, title, content, $element) { $dialog.removeClass('h5p-open'); // Fade out setTimeout(function () { $dialog.remove(); + H5P.instances[0].trigger('resize'); }, 200); }; }; diff --git a/styles/h5p.css b/styles/h5p.css index e3ece5c..786d72f 100644 --- a/styles/h5p.css +++ b/styles/h5p.css @@ -272,6 +272,7 @@ div.h5p-fullscreen { transition: opacity 0.2s; background:#000; background:rgba(0,0,0,0.75); + min-height: 300px; } .h5p-popup-dialog.h5p-open { opacity: 1;