aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-30 01:06:23 -0400
committerbobzel <zzzman@gmail.com>2020-08-30 01:06:23 -0400
commite8856332c19abe12fe43c940e35b49ab77aae612 (patch)
treed0fc3f99b9e57503bfb7c28944c2100801c26048 /src
parentdafb4f33ee32ddc323860bf54c560d2def66c152 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/TabDocView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx
index 5bff1cdc3..5acf825f1 100644
--- a/src/client/views/collections/TabDocView.tsx
+++ b/src/client/views/collections/TabDocView.tsx
@@ -326,6 +326,7 @@ export class TabDocView extends React.Component<TabDocViewProps> {
</div>
</div>;
}
+ focusFunc = (doc: Doc, willZoom: boolean, scale?: number, afterFocus?: () => void) => afterFocus?.();
setView = action((view: DocumentView) => this._view = view);
@computed get docView() {
TraceMobx();
@@ -348,7 +349,7 @@ export class TabDocView extends React.Component<TabDocViewProps> {
renderDepth={0}
parentActive={returnTrue}
whenActiveChanged={emptyFunction}
- focus={(doc: Doc, willZoom: boolean, scale?: number, afterFocus?: () => void) => afterFocus?.()}
+ focus={this.focusFunc}
backgroundColor={CollectionDockingView.Instance.props.backgroundColor}
addDocTab={this.addDocTab}
pinToPres={TabDocView.PinDoc}