From 2fd6875a9e0642b29f74cbd62406b05bbb7c40e8 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 4 Jun 2022 21:53:13 -0400 Subject: ugh ... added code from TabDocView pinDoc to pindMarqueeView and pinWithView to stop extar presBox views from being added to the right and to enable treeView to work with pinned views. --- .../collections/collectionFreeForm/MarqueeView.tsx | 37 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index 0338fcb18..8ca7e160e 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -1,6 +1,6 @@ import { action, computed, observable } from "mobx"; import { observer } from "mobx-react"; -import { AclAdmin, AclAugment, AclEdit, DataSym, Doc, Opt } from "../../../../fields/Doc"; +import { AclAdmin, AclAugment, AclEdit, DataSym, Doc, DocListCastAsync, Opt } from "../../../../fields/Doc"; import { Id } from "../../../../fields/FieldSymbols"; import { InkData, InkField, InkTool } from "../../../../fields/InkField"; import { List } from "../../../../fields/List"; @@ -387,7 +387,7 @@ export class MarqueeView extends React.Component { + pinMarqueeView = async () => { const doc = this.props.Document; const curPres = Cast(Doc.UserDoc().activePresentation, Doc) as Doc; if (curPres) { @@ -398,13 +398,25 @@ export class MarqueeView extends React.Component { + pinWithView = async (e: KeyboardEvent | React.PointerEvent | undefined) => { const doc = this.props.Document; const curPres = Cast(Doc.UserDoc().activePresentation, Doc) as Doc; if (curPres) { @@ -433,12 +445,23 @@ export class MarqueeView extends React.Component