aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-01-08 09:17:33 -0500
committerbobzel <zzzman@gmail.com>2021-01-08 09:17:33 -0500
commit3360cbeed45115fb757816a24f34ee812ff8cf19 (patch)
tree37e5356f28402455569c9935c157df0ed951b75e /src
parent93703f4c02c4c6e68489aca72bc0460efc3f6f5e (diff)
fixed resize to not include ContentScale for pick correlation to work
Diffstat (limited to 'src')
-rw-r--r--src/client/views/DocumentDecorations.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 372dc5456..497c66d98 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -423,7 +423,7 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b
const width = (doc._width || 0);
let height = (doc._height || (nheight / nwidth * width));
height = !height || isNaN(height) ? 20 : height;
- const scale = docView.props.ScreenToLocalTransform().Scale * docView.ContentScale();
+ const scale = docView.props.ScreenToLocalTransform().Scale;
if (nwidth && nheight) {
if (nwidth / nheight !== width / height && !dragBottom) {
height = nheight / nwidth * width;