aboutsummaryrefslogtreecommitdiff
path: root/src/documents/Documents.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-01-22 20:31:32 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-01-22 20:31:32 -0500
commit8a1915a73d1d1173059a212db3b79f8efcdd9e9e (patch)
tree10fbad6a2b3a2dd4f178d062cc01f976244640aa /src/documents/Documents.ts
parentc67608a7eeeb6bdee27a8e7b4a8f6f8561db6004 (diff)
Temporarily got rid of dvm to draastically improve performance and reduce number of re-renders
Diffstat (limited to 'src/documents/Documents.ts')
-rw-r--r--src/documents/Documents.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/documents/Documents.ts b/src/documents/Documents.ts
index 084666b95..a2d2218af 100644
--- a/src/documents/Documents.ts
+++ b/src/documents/Documents.ts
@@ -56,7 +56,7 @@ 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]));
}