Fix scroll positions for CanvasRenderer (Fix #1259)

This commit is contained in:
Niklas von Hertzen
2017-12-07 16:36:09 +08:00
parent 8b653f89bc
commit ef5c59e26d
3 changed files with 18 additions and 3 deletions

View File

@ -253,7 +253,7 @@ export class DocumentCloner {
}
this.inlineAllImages(clone);
if (node.scrollTop !== 0 || node.scrollLeft !== 0) {
this.scrolledElements.push([node, node.scrollLeft, node.scrollTop]);
this.scrolledElements.push([clone, node.scrollLeft, node.scrollTop]);
}
switch (node.nodeName) {
case 'CANVAS':