aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionGrid/Grid.tsx
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-06-01 10:30:57 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-06-01 10:30:57 +0530
commit44312bc8edf571fe4da1a7ee2f460efc5be4de85 (patch)
tree2239d239c3aa08bc331fda5ae60c0653b82902b6 /src/client/views/collections/collectionGrid/Grid.tsx
parent85553878a01877efb9e9d3b748064db66a6d8e30 (diff)
parent61b99fb1c667daeb06437d62c00d87a02c4f8479 (diff)
pulling
Diffstat (limited to 'src/client/views/collections/collectionGrid/Grid.tsx')
-rw-r--r--src/client/views/collections/collectionGrid/Grid.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/views/collections/collectionGrid/Grid.tsx b/src/client/views/collections/collectionGrid/Grid.tsx
index be6c4343a..542edb1cd 100644
--- a/src/client/views/collections/collectionGrid/Grid.tsx
+++ b/src/client/views/collections/collectionGrid/Grid.tsx
@@ -17,8 +17,8 @@ interface GridProps {
numCols: number;
rowHeight: number;
setLayout: Function;
- flex: boolean;
- scale: number;
+ transformScale: number;
+ childrenDraggable: boolean;
}
/**
@@ -43,7 +43,7 @@ export default class Grid extends React.Component<GridProps> {
}
render() {
- console.log(this.props.scale);
+ console.log(this.props.transformScale);
return (
<GridLayout className="layout"
layout={this.props.layout}
@@ -52,12 +52,12 @@ export default class Grid extends React.Component<GridProps> {
width={this.props.width}
compactType={null}
isDroppable={true}
+ isDraggable={this.props.childrenDraggable}
// useCSSTransforms={true}
margin={[10, 10]}
onLayoutChange={this.onLayoutChange}
preventCollision={false} // change this to true later
- // transformScale={2} // 1.2/scale
- onDrop={({ x, y, e }) => { console.log("Grid -> render -> x, y, e", x, y, e) }}
+ // transformScale={2} // 1.2/scale
>
{this.props.nodeList}
</GridLayout >