aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-05-28 12:44:16 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-05-28 12:44:16 +0530
commit560ca031c14d4b6524d2bb38b76c26ce2a8adff2 (patch)
treeadc68961ad5ac97fcd3c333463686b060e1ef08a /src
parentfb23850659dd6cc0b75d208168e25033096e07df (diff)
minor
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/collectionGrid/CollectionGridView.tsx2
-rw-r--r--src/client/views/collections/collectionGrid/Grid.tsx2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionGrid/CollectionGridView.tsx b/src/client/views/collections/collectionGrid/CollectionGridView.tsx
index a887cf98b..cece6368a 100644
--- a/src/client/views/collections/collectionGrid/CollectionGridView.tsx
+++ b/src/client/views/collections/collectionGrid/CollectionGridView.tsx
@@ -318,6 +318,7 @@ export class CollectionGridView extends CollectionSubView(GridSchema) {
ref={this.createDashEventsTarget}
//onPointerDown={(e: React.PointerEvent) => e.stopPropagation()}
>
+ DIV HERE with ref to access scroll of and adjust in getting position
<Grid
width={this.props.PanelWidth()}
nodeList={contents}
@@ -326,6 +327,7 @@ export class CollectionGridView extends CollectionSubView(GridSchema) {
rowHeight={this.props.Document.rowHeight as number}
setLayout={this.setLayout}
flex={this.props.Document.flexGrid as boolean}
+ scale={1 / this.props.ScreenToLocalTransform().Scale}
/>
</div>
);
diff --git a/src/client/views/collections/collectionGrid/Grid.tsx b/src/client/views/collections/collectionGrid/Grid.tsx
index 9520532b8..d29a123f1 100644
--- a/src/client/views/collections/collectionGrid/Grid.tsx
+++ b/src/client/views/collections/collectionGrid/Grid.tsx
@@ -18,6 +18,7 @@ interface GridProps {
rowHeight: number;
setLayout: Function;
flex: boolean;
+ scale: number;
}
/**
@@ -55,6 +56,7 @@ export default class Grid extends React.Component<GridProps> {
margin={[10, 10]}
onLayoutChange={this.onLayoutChange}
preventCollision={true}
+ transformScale={this.props.scale}
>
{this.props.nodeList}
</GridLayout >