mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-17 09:48:40 +00:00
always adjust iframe height
This commit is contained in:
parent
9964c6d6b7
commit
29707c3b13
|
|
@ -98,13 +98,10 @@ export class GeneralUI
|
||||||
const length = e.length;
|
const length = e.length;
|
||||||
|
|
||||||
for (let i = 0; i < length; ++i) {
|
for (let i = 0; i < length; ++i) {
|
||||||
if (e[i].contentWindow.document.readyState === 'complete') {
|
e[i].height = e[i].contentWindow.document.body.scrollHeight + 25;
|
||||||
e[i].height = e[i].contentWindow.document.body.scrollHeight + 25;
|
e[i].addEventListener('load', function() {
|
||||||
} else {
|
this.height = this.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