aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-10-14 13:38:31 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-10-14 13:38:31 -0400
commitcc84f5620b3f3ef801e3b0696f817e4fb74f58fc (patch)
treea743f02dd80daea6ea37040ec2371db7acd1b7b8 /src/client/views/DocumentDecorations.tsx
parentfb3d1a66100e9ecf573031cfcafeb983f4ad5d5b (diff)
parent9d877a5d38a5574b6ab99c20d0c1718e0af964b5 (diff)
merged with master
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 1d9f0c74b..3d73f048d 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -547,10 +547,14 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
}
TextBar: HTMLDivElement | undefined;
- setTextBar = (ele: HTMLDivElement) => {
+ private setTextBar = (ele: HTMLDivElement) => {
if (ele) {
this.TextBar = ele;
- TooltipTextMenu.Toolbar && Array.from(ele.childNodes).indexOf(TooltipTextMenu.Toolbar) === -1 && ele.appendChild(TooltipTextMenu.Toolbar);
+ }
+ }
+ public showTextBar = () => {
+ if (this.TextBar) {
+ TooltipTextMenu.Toolbar && Array.from(this.TextBar.childNodes).indexOf(TooltipTextMenu.Toolbar) === -1 && this.TextBar.appendChild(TooltipTextMenu.Toolbar);
}
}
render() {