Set minimum height for dialogs

set-minimum-height-for-dialogs
Paal Joergensen 2018-10-23 12:55:05 +02:00
parent 82b50fc2f1
commit 35fa220bd0
2 changed files with 3 additions and 0 deletions

View File

@ -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);
};
};

View File

@ -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;