aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes
diff options
context:
space:
mode:
authorvellichora <fangrui_tong@brown.edu>2020-02-11 10:49:25 -0500
committervellichora <fangrui_tong@brown.edu>2020-02-11 10:49:25 -0500
commit47b939e9799da2f57047a15113c116d8ba31ce5e (patch)
treeafc284a165a77fd19d009833f0eb215aa8e2396a /src/client/views/nodes
parentb60154479add51f826afaeff074cf43a6b416831 (diff)
fixed some small errors
Diffstat (limited to 'src/client/views/nodes')
-rw-r--r--src/client/views/nodes/WebBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index 082a9a965..d486253b8 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -222,7 +222,7 @@ export class WebBox extends DocAnnotatableComponent<FieldViewProps, WebDocument>
if (pressedElement.nodeName === "IMG") {
const src = pressedElement.getAttribute("src"); // TODO: may not always work
if (src) {
- const doc = Docs.Create.ImageDocument(src, { width: 300 });
+ const doc = Docs.Create.ImageDocument(src, { _width: 300 });
ImageUtils.ExtractExif(doc);
// add clone to div so that dragging ghost is placed properly