aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-08 09:21:18 -0500
committerbob <bcz@cs.brown.edu>2019-03-08 09:21:18 -0500
commit4796d17b089824df4455788c564414526c08eaa4 (patch)
tree6409872973bc6c1fc8b8e1d2cd328207ed87a83a /src/client/util/DragManager.ts
parent58a189d13061cdf4b7561c30bad9e1230a57eeff (diff)
merged with master
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);