diff options
author | bobzel <zzzman@gmail.com> | 2021-09-20 12:24:34 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-20 12:24:34 -0400 |
commit | 240f2c9bda4a9a32d84d1de93820f6fbc8eef458 (patch) | |
tree | 61cd1e53d0c97488621aca6cee1f70c8c8127309 /src/client/views/nodes/DocumentView.tsx | |
parent | 2dcca57b50c7f53836115cdd880f63ffa42635e2 (diff) |
fixed equations/ink to work properly when not fitwidth in lightbox. don't show titles for ink or equations using fields now.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index d2b4b0348..60ceac007 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -1168,7 +1168,7 @@ export class DocumentView extends React.Component<DocumentViewProps> { } const xf = (this.docView?.props.ScreenToLocalTransform().scale(this.nativeScaling)).inverse(); const [[left, top], [right, bottom]] = [xf.transformPoint(0, 0), xf.transformPoint(this.panelWidth, this.panelHeight)]; - if (this.docView.props.LayoutTemplateString?.includes("LinkAnchorBox")) { + if (this.docView.props.LayoutTemplateString?.includes(LinkAnchorBox.name)) { const docuBox = this.docView.ContentDiv.getElementsByClassName("linkAnchorBox-cont"); if (docuBox.length) return docuBox[0].getBoundingClientRect(); } |