diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-01-26 17:23:25 -0500 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-01-26 17:23:25 -0500 |
commit | ba3c6773a04ea83facab1f67db0025d6185c2c65 (patch) | |
tree | be39c0c927ae4649c8505ef33c7f1c8272974ca2 /src/documents/Documents.ts | |
parent | f98e634ae7070cd841bc523514d147195308696c (diff) | |
parent | 122076af3edfd432e6abe3b2571f21034d5c16e5 (diff) |
Merge branch 'master' into move_doc_get_out_the_way
Diffstat (limited to 'src/documents/Documents.ts')
-rw-r--r-- | src/documents/Documents.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/documents/Documents.ts b/src/documents/Documents.ts index 5fee7343b..fb7c7c4d9 100644 --- a/src/documents/Documents.ts +++ b/src/documents/Documents.ts @@ -59,7 +59,8 @@ export namespace Documents { imageProto.SetField(KeyStore.Y, new NumberField(0)); imageProto.SetField(KeyStore.Width, new NumberField(300)); imageProto.SetField(KeyStore.Height, new NumberField(300)); - imageProto.SetField(KeyStore.Layout, new TextField('<img src={Data} alt="Image not found"/>')); + imageProto.SetField(KeyStore.Layout, new TextField('<img src={Data} draggable="false" width="100%" alt="Image not found"/>')); + // imageProto.SetField(KeyStore.Layout, new TextField('<div style={"background-image: " + {Data}} />')); imageProto.SetField(KeyStore.LayoutFields, new ListField([KeyStore.Data])); } return imageProto; @@ -83,7 +84,7 @@ export namespace Documents { collectionProto.SetField(KeyStore.PanY, new NumberField(0)); collectionProto.SetField(KeyStore.Width, new NumberField(300)); collectionProto.SetField(KeyStore.Height, new NumberField(300)); - collectionProto.SetField(KeyStore.Layout, new TextField('<CollectionFreeFormView Document={Document} fieldKey={DataKey} ContainingDocumentView={ContainingDocumentView} isSelected={isSelected}/>')); + collectionProto.SetField(KeyStore.Layout, new TextField('<CollectionFreeFormView Document={Document} fieldKey={DataKey} ContainingDocumentView={ContainingDocumentView}/>')); collectionProto.SetField(KeyStore.LayoutKeys, new ListField([KeyStore.Data])); } return collectionProto; |