aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/MarqueeView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-18 12:57:36 -0400
committerbob <bcz@cs.brown.edu>2019-03-18 12:57:36 -0400
commitbe117e38a63a558684baa69f719787f11dfc3be3 (patch)
tree8275d70be6aa728de3fea9af76b9422464143227 /src/client/views/collections/MarqueeView.tsx
parent8acbb6e31d913982e06b8498078b90bf99c18600 (diff)
parent861614569c2d72e0ee9a6a698f3978f609a3b2bc (diff)
Merge branch 'master' into authentication
Diffstat (limited to 'src/client/views/collections/MarqueeView.tsx')
-rw-r--r--src/client/views/collections/MarqueeView.tsx15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/client/views/collections/MarqueeView.tsx b/src/client/views/collections/MarqueeView.tsx
index f5c83a934..8c2f3443c 100644
--- a/src/client/views/collections/MarqueeView.tsx
+++ b/src/client/views/collections/MarqueeView.tsx
@@ -17,7 +17,7 @@ interface MarqueeViewProps {
getMarqueeTransform: () => Transform;
getTransform: () => Transform;
container: CollectionFreeFormView;
- addDocument: (doc: Document) => void;
+ addDocument: (doc: Document, allowDuplicates: false) => void;
activeDocuments: () => Document[];
selectDocuments: (docs: Document[]) => void;
removeDocument: (doc: Document) => boolean;
@@ -111,7 +111,18 @@ export class MarqueeView extends React.Component<MarqueeViewProps>
let liftedInk = this.marqueeInkSelect(true);
this.props.container.props.Document.SetData(KeyStore.Ink, this.marqueeInkSelect(false), InkField);
//setTimeout(() => {
- this.props.addDocument(Documents.FreeformDocument(selected, { x: bounds.left, y: bounds.top, panx: 0, pany: 0, width: bounds.width, backgroundColor: "Transparent", height: bounds.height, ink: liftedInk, title: "a nested collection" }));
+ let newCollection = Documents.FreeformDocument(selected, {
+ x: bounds.left,
+ y: bounds.top,
+ panx: 0,
+ pany: 0,
+ width: bounds.width,
+ height: bounds.height,
+ backgroundColor: "Transparent",
+ ink: liftedInk,
+ title: "a nested collection"
+ });
+ this.props.addDocument(newCollection, false);
// }, 100);
this.cleanupInteractions();
}