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
|
$dialog.addClass('h5p-open'); // Fade in
|
||||||
// Triggering an event, in case something has to be done after dialog has been opened.
|
// Triggering an event, in case something has to be done after dialog has been opened.
|
||||||
H5P.jQuery(self).trigger('dialog-opened', [$dialog]);
|
H5P.jQuery(self).trigger('dialog-opened', [$dialog]);
|
||||||
|
H5P.instances[0].trigger('resize');
|
||||||
}, 1);
|
}, 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -965,6 +966,7 @@ H5P.Dialog = function (name, title, content, $element) {
|
||||||
$dialog.removeClass('h5p-open'); // Fade out
|
$dialog.removeClass('h5p-open'); // Fade out
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$dialog.remove();
|
$dialog.remove();
|
||||||
|
H5P.instances[0].trigger('resize');
|
||||||
}, 200);
|
}, 200);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -272,6 +272,7 @@ div.h5p-fullscreen {
|
||||||
transition: opacity 0.2s;
|
transition: opacity 0.2s;
|
||||||
background:#000;
|
background:#000;
|
||||||
background:rgba(0,0,0,0.75);
|
background:rgba(0,0,0,0.75);
|
||||||
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
.h5p-popup-dialog.h5p-open {
|
.h5p-popup-dialog.h5p-open {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
Loading…
Reference in New Issue