diff options
| author | geireann <geireann.lindfield@gmail.com> | 2024-07-17 16:06:20 -0400 |
|---|---|---|
| committer | geireann <geireann.lindfield@gmail.com> | 2024-07-17 16:06:20 -0400 |
| commit | 740d588a4cd5df9877664877149120bf4cacacaa (patch) | |
| tree | 04491bfb4b39ad8b1c4d48bf7cfcb4c76f49a3d6 /src/client/views/pdf | |
| parent | 9da1206079b2f20274a720c4e62cf1d6e063e7ac (diff) | |
fixed higlighting text targets with color and htmlOveraly
Diffstat (limited to 'src/client/views/pdf')
| -rw-r--r-- | src/client/views/pdf/Annotation.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx index 7dd4047c1..3bd42873c 100644 --- a/src/client/views/pdf/Annotation.tsx +++ b/src/client/views/pdf/Annotation.tsx @@ -111,6 +111,7 @@ export class Annotation extends ObservableReactComponent<IAnnotationProps> { outline = () => (this.linkHighlighted ? 'solid 1px lightBlue' : undefined); background = () => (this._props.annoDoc[Highlight] ? 'orange' : StrCast(this._props.annoDoc.backgroundColor)); render() { + const forceRenderHack = [this.background(), this.outline(), this.opacity()]; // forces a re-render when these change -- because RegionAnnotation doesn't do this internally.. return ( <div style={{ display: this._props.annoDoc.textCopied && !Doc.GetBrushHighlightStatus(this._props.annoDoc) ? 'none' : undefined }}> {StrListCast(this._props.annoDoc.text_inlineAnnotations) |
