diff options
author | bob <bcz@cs.brown.edu> | 2020-01-28 11:11:18 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-01-28 11:11:18 -0500 |
commit | 267bab4c2935841e6e94c63b982af9901ad89cbc (patch) | |
tree | 8092f8c9a38d5efac34e91989c06939a6cc3559b /src/client/views/nodes/ImageBox.tsx | |
parent | df88c30ec47a2a80c9723f7a6b7ac203dffe34a1 (diff) |
multicolumn drop fixes. adding menu entry to stacking columndocs. fixed imagebox nativewidth/height settings.
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index ffcbe459e..33c694c6e 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -257,7 +257,7 @@ export class ImageBox extends DocAnnotatableComponent<FieldViewProps, ImageDocum }) .catch((err: any) => console.log(err)); } else if (this.Document._nativeHeight !== cachedNativeSize.width || this.Document._nativeWidth !== cachedNativeSize.height) { - setTimeout(() => { + !(this.Document[StrCast(this.props.Document.layoutKey)] instanceof Doc) && setTimeout(() => { this.Document._nativeWidth = cachedNativeSize.width; this.Document._nativeHeight = cachedNativeSize.height; }, 0); |