mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-27 17:08:40 +00:00
Fix iframe resizing bug
This commit is contained in:
parent
f5a4aaa850
commit
98004844f2
|
|
@ -98,7 +98,10 @@ export class GeneralUI
|
|||
const length = e.length;
|
||||
|
||||
for (let i = 0; i < length; ++i) {
|
||||
e[i].height = e[i].contentWindow.document.body.scrollHeight + 25;
|
||||
if (e[i].contentWindow.document.body !== null) {
|
||||
e[i].height = e[i].contentWindow.document.body.scrollHeight + 25;
|
||||
}
|
||||
|
||||
e[i].addEventListener('load', function() {
|
||||
this.height = this.contentWindow.document.body.scrollHeight + 25;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user