Set minimum height for dialogs
parent
82b50fc2f1
commit
35fa220bd0
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue