aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index a7af399e2..513a6ac9e 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -124,15 +124,15 @@ export namespace DragManager {
// So we replace the pdf's canvas with the image thumbnail
const docView: DocumentView = dragData["documentView"];
const doc: Document = docView ? docView.props.Document : dragData["document"];
- var pdfNode = dragElement.getElementsByClassName("pdfNode-cont")[0] as HTMLElement;
+ var pdfBox = dragElement.getElementsByClassName("pdfBox-cont")[0] as HTMLElement;
let thumbnail = doc.GetT(KeyStore.Thumbnail, ImageField);
- if (pdfNode && pdfNode.childElementCount && thumbnail) {
+ if (pdfBox && pdfBox.childElementCount && thumbnail) {
let img = new Image();
img!.src = thumbnail.toString();
img!.style.position = "absolute";
img!.style.width = `${rect.width / scaleX}px`;
img!.style.height = `${rect.height / scaleY}px`;
- pdfNode.replaceChild(img!, pdfNode.children[0])
+ pdfBox.replaceChild(img!, pdfBox.children[0])
}
dragDiv.appendChild(dragElement);