aboutsummaryrefslogtreecommitdiff
path: root/src/views/freeformcanvas/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-01-20 19:48:04 -0500
committeryipstanley <stanley_yip@brown.edu>2019-01-20 19:48:04 -0500
commit481ca03c47962b301199285feebdb73a66818a9f (patch)
tree2bedac0024e07d304d644af3031e8550664329bb /src/views/freeformcanvas/CollectionFreeFormView.tsx
parent08e2d1fd54824a1e8638a66ff031253ae72ab77b (diff)
switching to cffv
Diffstat (limited to 'src/views/freeformcanvas/CollectionFreeFormView.tsx')
-rw-r--r--src/views/freeformcanvas/CollectionFreeFormView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/views/freeformcanvas/CollectionFreeFormView.tsx b/src/views/freeformcanvas/CollectionFreeFormView.tsx
index 4e9e0cd21..4c8fcec10 100644
--- a/src/views/freeformcanvas/CollectionFreeFormView.tsx
+++ b/src/views/freeformcanvas/CollectionFreeFormView.tsx
@@ -10,6 +10,7 @@ import { ListField } from "../../fields/ListField";
import { NumberField } from "../../fields/NumberField";
import { SSL_OP_SINGLE_DH_USE } from "constants";
import { DocumentDecorations } from "../../DocumentDecorations";
+import { SelectionManager } from "../../util/SelectionManager";
interface IProps {
fieldKey: Key;
@@ -94,8 +95,8 @@ export class CollectionFreeFormView extends React.Component<IProps> {
height: "calc(100% - 4px)",
overflow: "hidden"
}}>
- <div className="collectionfreeformview" style={{ transform: `translate(${panx}px, ${pany}px)`, transformOrigin: '50% 50%' }}>
- <div className="node-container">
+ <div className="collectionfreeformview" style={{ transform: `translate(${panx}px, ${pany}px)`, transformOrigin: '50% 50%', width: "100%", height: "100%" }}>
+ <div className="node-container" style={{width: "100%", height: "100%"}}>
{value.map(doc => {
return (<DocumentView key={doc.Id} dvm={new DocumentViewModel(doc)} />);
})}