aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-19 11:49:38 -0400
committerbob <bcz@cs.brown.edu>2019-09-19 11:49:38 -0400
commit4c0bdf9c38a134a7e669d8c113e10e9cfac6e1a6 (patch)
tree3f0859cf7aa2417c7b9de5bdcd028f2ff6bc294f /src/client/views/collections/CollectionSubView.tsx
parent2cdca63ac039a7c66a9c93acb35fe51467269e64 (diff)
fixed text location when editing a resized document. made animatebetweenPoint from documentview's collapsetoTargetPoint
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 001560167..804bfa2b2 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -277,6 +277,10 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) {
promises.push(prom);
}
}
+ if (text) {
+ this.props.addDocument(Docs.Create.TextDocument({ ...options, documentText: "@@@" + text, width: 400, height: 315 }));
+ return;
+ }
if (promises.length) {
Promise.all(promises).finally(() => { completed && completed(); batch.end(); });