aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-15 14:39:41 -0400
committerbobzel <zzzman@gmail.com>2020-09-15 14:39:41 -0400
commit6a988e009eb1a43145c14f0d55af405318fd144f (patch)
tree758480bb35ecf02387abe40fc185a9d9dcdc1b6a /src/client/util/DocumentManager.ts
parent45c2bf0a22ae83a65d91f11934e1c21770b897c7 (diff)
fixed tabs to activate when following.a link to a contained item. fixed deactivating tabs to not shrink immediately so you can click the close button.
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 903760c58..c3d78a028 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -162,8 +162,6 @@ export class DocumentManager {
docView.props.Document.hidden = !docView.props.Document.hidden;
}
else {
- const contView = docContext && getFirstDocView(docContext, originatingDoc);
- contView && contView.topMost && contView.select(false); // bcz: change this to a function prop: popTab() that will make sure the tab for the document is topmost;
docView.select(false);
docView.props.Document.hidden && (docView.props.Document.hidden = undefined);
docView.props.focus(docView.props.Document, willZoom, undefined, focusAndFinish);