fix: element cropping & scrolling (#2625)

This commit is contained in:
Niklas von Hertzen
2021-08-04 20:58:17 +08:00
committed by GitHub
parent 1338c7b203
commit 878e37a242
90 changed files with 750 additions and 552 deletions

View File

@@ -2,7 +2,14 @@ export class DocumentCloner {
clonedReferenceElement?: HTMLElement;
constructor() {
this.clonedReferenceElement = {} as HTMLElement;
this.clonedReferenceElement = {
ownerDocument: {
defaultView: {
pageXOffset: 12,
pageYOffset: 34
}
}
} as HTMLElement;
}
toIFrame(): Promise<HTMLIFrameElement> {