aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-12 18:38:04 -0500
committerbobzel <zzzman@gmail.com>2020-12-12 18:38:04 -0500
commit0aa855ab36ead1e4669f25e2a3604e8941cf2075 (patch)
tree0ca7ebff6ec6f5bafaf28270f52223f9523ea22a /src/client/views/DocumentDecorations.tsx
parentf3f93e61f3914bd9fd6e8098a99e552f7860bc5f (diff)
fixed screenToLocal for documents within ContentFittingDoc collections. fixed embedding documents in texst docs.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-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 9e81e108e..d3b83352e 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -69,7 +69,7 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b
Doc.AreProtosEqual(documentView.props.Document, Doc.UserDoc())) {
return bounds;
}
- const transform = (documentView.props.ScreenToLocalTransform().scale(documentView.props.ContentScaling())).inverse();
+ const transform = (documentView.props.ScreenToLocalTransform().scale(documentView.LocalScaling)).inverse();
var [sptX, sptY] = transform.transformPoint(0, 0);
let [bptX, bptY] = transform.transformPoint(documentView.props.PanelWidth(), documentView.props.PanelHeight());
if (documentView.props.LayoutTemplateString?.includes("LinkAnchorBox")) {