aboutsummaryrefslogtreecommitdiff
path: root/src/views/nodes/CollectionFreeFormDocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2019-02-05 22:37:46 -0500
committerbobzel <zzzman@gmail.com>2019-02-05 22:37:46 -0500
commit4ac7a62d813738b0047caefbcf40d3063ec9e6c1 (patch)
treeb26d6d72f986b05cc8595300efb75af9d8b2183d /src/views/nodes/CollectionFreeFormDocumentView.tsx
parent26af9562cc515627be4be8759b70ebfbab8bb83c (diff)
checkpoint
Diffstat (limited to 'src/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r--src/views/nodes/CollectionFreeFormDocumentView.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/nodes/CollectionFreeFormDocumentView.tsx b/src/views/nodes/CollectionFreeFormDocumentView.tsx
index 08068b384..9f13733c9 100644
--- a/src/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -11,6 +11,7 @@ import "./NodeView.scss";
import React = require("react");
import { DocumentView, DocumentViewProps } from "./DocumentView";
import { WAITING } from "../../fields/Field";
+import { ImageField } from '../../fields/ImageField';
@observer
@@ -206,6 +207,8 @@ export class CollectionFreeFormDocumentView extends DocumentView {
render() {
var freestyling = this.props.ContainingCollectionView instanceof CollectionFreeFormView;
+ let data = this.props.Document.GetFieldT(KeyStore.Data, ImageField);
+ console.log("CollectionFFDocView " + this.props.Document.Title + "<" + data + "> x=" + this.x);
return (
<div className="node" ref={this._mainCont} style={{
transform: freestyling ? this.transform : "",
@@ -217,7 +220,7 @@ export class CollectionFreeFormDocumentView extends DocumentView {
onContextMenu={this.onContextMenu}
onPointerDown={this.onPointerDown}>
- <DocumentView {...this.props} DocumentView={this} />
+ <DocumentView {...this.props} DocumentView={this} Data={data} />
</div>
);
}