From f8ce34c8ed42646691d1e392effe79bc27daf810 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 8 Dec 2021 22:48:46 -0500 Subject: Added auto scroll to bottom of map info view stack when note is added. hide resize handles for map view info window stack documents. --- src/client/views/collections/CollectionStackingView.tsx | 5 +++++ src/client/views/collections/CollectionView.tsx | 1 + src/client/views/nodes/MapBox/MapBoxInfoWindow.tsx | 6 ++++++ 3 files changed, 12 insertions(+) (limited to 'src') diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index eddb97878..cdc680a08 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -178,6 +178,10 @@ export class CollectionStackingView extends CollectionSubView { + smoothScroll(500, this._mainCont!, this._mainCont!.scrollHeight); + } + focusDocument = (doc: Doc, options?: DocFocusOptions) => { Doc.BrushDoc(doc); @@ -244,6 +248,7 @@ export class CollectionStackingView extends CollectionSubView { script: ScriptField, label: string }[]; childHideTitle?: () => boolean; // whether to hide the documentdecorations title for children childHideDecorationTitle?: () => boolean; + childHideResizeHandles?: () => boolean; childLayoutTemplate?: () => (Doc | undefined);// specify a layout Doc template to use for children of the collection childLayoutString?: string; childFreezeDimensions?: boolean; // used by TimeView to coerce documents to treat their width height as their native width/height diff --git a/src/client/views/nodes/MapBox/MapBoxInfoWindow.tsx b/src/client/views/nodes/MapBox/MapBoxInfoWindow.tsx index e6f98e5cf..0d5fedb7b 100644 --- a/src/client/views/nodes/MapBox/MapBoxInfoWindow.tsx +++ b/src/client/views/nodes/MapBox/MapBoxInfoWindow.tsx @@ -37,11 +37,15 @@ export class MapBoxInfoWindow extends React.Component
this._stack = r} {...OmitKeys(this.props, ["NativeWidth", "NativeHeight", "setContentView"]).omit} Document={this.props.place} DataDoc={undefined} @@ -66,6 +71,7 @@ export class MapBoxInfoWindow extends React.Component doc.type === DocumentType.RTF} // childDocumentsActive={returnFalse} -- cgit v1.2.3-70-g09d2