diff options
author | bobzel <zzzman@gmail.com> | 2023-10-12 11:24:19 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-10-12 11:24:19 -0400 |
commit | 53d456afb43b70cc240bc6a37094fa37cfe37436 (patch) | |
tree | 1c45b91992e766da36a92ae652aa7ebe122ff664 /src/client/views/nodes/PDFBox.tsx | |
parent | 54e80f26df04f1a031d1d7e4b840fe9426d4d2cf (diff) |
performance fixes to reduce re-rendering : moved link brushing out of Doc's highlighting and into Annotation.tsx, stopped freeformview from rerendering whenever its invalidated by not always setting layoutElements to a new list.
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index cf44649a2..537da5055 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -566,7 +566,6 @@ export class PDFBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps className="pdfBox" onContextMenu={this.specificContextMenu} style={{ - display: this.props.thumbShown?.() ? 'none' : undefined, height: this.props.Document._layout_scrollTop && !this.Document._layout_fitWidth && window.screen.width > 600 ? (NumCast(this.Document._height) * this.props.PanelWidth()) / NumCast(this.Document._width) : undefined, }}> <div className="pdfBox-background" onPointerDown={e => this.sidebarBtnDown(e, false)} /> @@ -609,7 +608,6 @@ export class PDFBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps static pdfpromise = new Map<string, Promise<Pdfjs.PDFDocumentProxy>>(); render() { TraceMobx(); - if (this.props.thumbShown?.()) return null; const pdfView = this.renderPdfView; const href = this.pdfUrl?.url.href; |