diff options
author | bobzel <zzzman@gmail.com> | 2021-01-08 09:17:33 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-01-08 09:17:33 -0500 |
commit | 3360cbeed45115fb757816a24f34ee812ff8cf19 (patch) | |
tree | 37e5356f28402455569c9935c157df0ed951b75e | |
parent | 93703f4c02c4c6e68489aca72bc0460efc3f6f5e (diff) |
fixed resize to not include ContentScale for pick correlation to work
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 2 |
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; |