diff options
author | bobzel <zzzman@gmail.com> | 2025-07-16 11:31:49 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-07-16 11:31:49 -0400 |
commit | 47d55dcaf8b776fa2ba4272e1ae8fa2e5ef87ee4 (patch) | |
tree | c08c1ccb918245e7542447eb2f6b919566bac5c3 /src/client/views/nodes/ImageBox.tsx | |
parent | efd3de67c79f7507840ac02d63f6c173c298dbac (diff) |
fixed disappearing images caused by having no height when default image was an alternate. fixed columnDragger for masonry view to always display to avoid flicker artifacts.
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 78bacdcac..5d5f9d00a 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -717,7 +717,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { @computed get nativeSize() { TraceMobx(); - if (this.paths.length && this.paths[0].includes(DefaultPath)) return { nativeWidth: NumCast(this.layoutDoc._width), nativeHeight: NumCast(this.layoutDoc._height), nativeOrientation: 0 }; + if (this.paths[0]?.includes(DefaultPath) && this.layoutDoc._height) return { nativeWidth: NumCast(this.layoutDoc._width), nativeHeight: NumCast(this.layoutDoc._height), nativeOrientation: 0 }; const { nativeWidth, nativeHeight } = this.imgNativeSize; const nativeOrientation = NumCast(this.dataDoc[this.fieldKey + '_nativeOrientation'], 1); return { nativeWidth, nativeHeight, nativeOrientation }; |