aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-08 14:24:33 -0400
committerbobzel <zzzman@gmail.com>2020-09-08 14:24:33 -0400
commit9e91c34bc25851ce9a6def9665267c0874b0693c (patch)
tree2cdf21a4d26af8308f88ca7af131edf292c8de03 /src/client/views/nodes/ImageBox.tsx
parent157faac6a3c8a7c2347baf78e1796ff0aa3e0312 (diff)
resurrecting templates with childLayout
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r--src/client/views/nodes/ImageBox.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 5832a51a7..6fd9b1337 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -250,6 +250,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps, ImageD
_curSuffix = "_m";
resize = (imgPath: string) => {
+ if (this.props.dontRegisterView) return;
const basePath = imgPath.replace(/_[oms]./, "");
const curPath = this.dataDoc[this.fieldKey + "-path"];
const cachedNativeSize = {