always adjust iframe height

This commit is contained in:
Dennis Eichhorn 2020-11-01 21:21:55 +01:00
parent 9964c6d6b7
commit 29707c3b13

View File

@ -98,15 +98,12 @@ export class GeneralUI
const length = e.length;
for (let i = 0; i < length; ++i) {
if (e[i].contentWindow.document.readyState === 'complete') {
e[i].height = e[i].contentWindow.document.body.scrollHeight + 25;
} else {
e[i].addEventListener('load', function() {
this.height = this.contentWindow.document.body.scrollHeight + 25;
});
}
}
}
/**
* Bind & rebind UI element.