aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/SidebarAnnos.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-29 19:04:08 -0400
committerbobzel <zzzman@gmail.com>2021-03-29 19:04:08 -0400
commit7db0fe589afa3281894afb0a0d3bd6b9983c9d33 (patch)
tree3c8f81ddb5049c4c15c4ca4f4487cb63e7539049 /src/client/views/SidebarAnnos.tsx
parentfa6aa3f3d13cade1cd46d954dbfee6f8566bcc86 (diff)
still cleaning up all the active/selection code.
Diffstat (limited to 'src/client/views/SidebarAnnos.tsx')
-rw-r--r--src/client/views/SidebarAnnos.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/SidebarAnnos.tsx b/src/client/views/SidebarAnnos.tsx
index d3216bc94..4514e3ebb 100644
--- a/src/client/views/SidebarAnnos.tsx
+++ b/src/client/views/SidebarAnnos.tsx
@@ -98,7 +98,7 @@ export class SidebarAnnos extends React.Component<FieldViewProps & ExtraProps> {
};
return !this.props.layoutDoc._showSidebar ? (null) :
<div style={{
- position: "absolute", pointerEvents: this.props.active() ? "all" : undefined, top: 0, right: 0,
+ position: "absolute", pointerEvents: this.props.isContentActive() ? "all" : undefined, top: 0, right: 0,
background: this.props.styleProvider?.(this.props.rootDoc, this.props, StyleProp.WidgetColor),
width: `${this.panelWidth()}px`,
height: "100%"
@@ -120,7 +120,7 @@ export class SidebarAnnos extends React.Component<FieldViewProps & ExtraProps> {
scaleField={this.sidebarKey() + "-scale"}
isAnnotationOverlay={false}
select={emptyFunction}
- active={this.props.annotationsActive}
+ isContentActive={this.props.annotationsActive}
scaling={returnOne}
whenChildContentsActiveChanged={this.props.whenChildContentsActiveChanged}
childHideDecorationTitle={returnTrue}