mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01: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;
|
||||
|
||||
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;
|
||||
});
|
||||
}
|
||||
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