Resize h5p container instead of body by default. HFP-574
parent
f277fed4d1
commit
87bd3c7e11
|
@ -352,7 +352,8 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
|
||||||
* @param {number|null} minHeight
|
* @param {number|null} minHeight
|
||||||
*/
|
*/
|
||||||
this.setViewPortMinimumHeight = function(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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue