diff options
author | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-09-07 01:05:29 -0700 |
---|---|---|
committer | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-09-07 01:05:29 -0700 |
commit | 76775dcec472c9629a1d272260b2a9e8f7083760 (patch) | |
tree | 67f30da5fbbc534b6159569882f2208d2492ed0d /src/client/views/nodes/ImageBox.tsx | |
parent | 0cad8ecdf46107d50bdb4b4720a320ae1392fa5e (diff) | |
parent | 9a1fec81467e6d4b04c6e28d66b724aae92db826 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into new_audio
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 688bac725..5832a51a7 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -262,7 +262,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps, ImageD if (!this.layoutDoc.isTemplateDoc || this.dataDoc !== this.layoutDoc) { const rotation = NumCast(this.dataDoc[this.fieldKey + "-rotation"]) % 180; const orientation = NumCast(this.dataDoc[this.fieldKey + "-nativeOrientation"]); - if (orientation === 6 || rotation === 90 || rotation === 270) { + if (orientation >= 5 || rotation === 90 || rotation === 270) { this.layoutDoc._nativeWidth = NumCast(this.dataDoc[this.fieldKey + "-nativeHeight"]); this.layoutDoc._nativeHeight = NumCast(this.dataDoc[this.fieldKey + "-nativeWidth"]); } else { |