Resize h5p container instead of body by default. HFP-574

pull/40/head
Tom Arild Jakobsen 2017-05-11 17:09:44 +02:00
parent f277fed4d1
commit 87bd3c7e11
1 changed files with 2 additions and 1 deletions

View File

@ -352,7 +352,8 @@ H5P.ConfirmationDialog = (function (EventDispatcher) {
* @param {number|null} 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;
};
}