aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-06 13:15:17 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-06 13:15:17 -0400
commit503033544cdfd71dd76b861aa884d0c4d40eb068 (patch)
tree99f0cf5c79cd9df314093fab4004be6cf17296ae
parent155f44b563c1338422de5f8f9a7429c69da1039d (diff)
from last
-rw-r--r--src/client/views/nodes/ImageBox.tsx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index 4a1b71a9e..8818b8098 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -393,11 +393,9 @@ export class ImageBox extends DocAnnotatableComponent<FieldViewProps, ImageDocum
const { nativeWidth, nativeHeight } = this.nativeSize;
const rotation = NumCast(this.dataDoc[this.fieldKey + "-rotation"]);
const aspect = (rotation % 180) ? nativeHeight / nativeWidth : 1;
- //const shift = (rotation % 180) ? -(nativeHeight - nativeHeight * aspect) : 0;
const pwidth = this.props.PanelWidth();
const pheight = this.props.PanelHeight();
const shift = (rotation % 180) ? (pheight - pwidth) / aspect / 2 + (pheight - pwidth) / 2 : 0;
- //(300 - 168) / 1.7778 / 2 + (300 - 168)/2
this.resize(srcpath);