diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-06-01 11:34:00 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-06-01 11:34:00 +0530 |
commit | 9f64b56310c0345e97014f418129c9883ab56e89 (patch) | |
tree | 6b04aae7d27018ffa3d6cd0820796d4ca4b8d3fa /src | |
parent | 44312bc8edf571fe4da1a7ee2f460efc5be4de85 (diff) |
cleanup
Diffstat (limited to 'src')
3 files changed, 13 insertions, 15 deletions
diff --git a/src/client/views/collections/collectionGrid/CollectionGridView.scss b/src/client/views/collections/collectionGrid/CollectionGridView.scss index 49d463441..fb30fe4c1 100644 --- a/src/client/views/collections/collectionGrid/CollectionGridView.scss +++ b/src/client/views/collections/collectionGrid/CollectionGridView.scss @@ -4,25 +4,27 @@ width: 100%; height: 100%; flex-direction: column; + } +// .documentDecorations-container .documentDecorations-resizer { +// pointer-events: none; +// } + +// #documentDecorations-bottomRightResizer, +// #documentDecorations-bottomLeftResizer, +// #documentDecorations-topRightResizer, +// #documentDecorations-topLeftResizer { +// visibility: collapse; +// } + .collectionGridView-contents .collectionGridView-gridContainer { height: 100%; overflow-y: auto; background-color: white; } -.documentDecorations-container .documentDecorations-resizer { - pointer-events: none; -} - -#documentDecorations-bottomRightResizer, -#documentDecorations-bottomLeftResizer, -#documentDecorations-topRightResizer, -#documentDecorations-topLeftResizer { - visibility: collapse; -} /* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, diff --git a/src/client/views/collections/collectionGrid/CollectionGridView.tsx b/src/client/views/collections/collectionGrid/CollectionGridView.tsx index f503c38d1..dd355ef47 100644 --- a/src/client/views/collections/collectionGrid/CollectionGridView.tsx +++ b/src/client/views/collections/collectionGrid/CollectionGridView.tsx @@ -71,7 +71,6 @@ export class CollectionGridView extends CollectionSubView(GridSchema) { */ private lookupIndividualTransform = (doc: Doc) => { const yTranslation = this.rowHeightPlusGap * NumCast(doc.y) + 10 - this._scroll; - console.log("CollectionGridView -> privatelookupIndividualTransform -> this.containerRef.current!.scrollTop", this.containerRef.current!.scrollTop) const xTranslation = this.colWidthPlusGap * NumCast(doc.x) + 10; return this.props.ScreenToLocalTransform().translate(-xTranslation, -yTranslation); } diff --git a/src/client/views/collections/collectionGrid/Grid.tsx b/src/client/views/collections/collectionGrid/Grid.tsx index 542edb1cd..0e9e8bbca 100644 --- a/src/client/views/collections/collectionGrid/Grid.tsx +++ b/src/client/views/collections/collectionGrid/Grid.tsx @@ -26,12 +26,9 @@ interface GridProps { */ @observer export default class Grid extends React.Component<GridProps> { - gridRef: React.RefObject<HTMLDivElement>; constructor(props: Readonly<GridProps>) { super(props); - this.gridRef = React.createRef(); - this.onLayoutChange = this.onLayoutChange.bind(this); } /** @@ -52,7 +49,7 @@ export default class Grid extends React.Component<GridProps> { width={this.props.width} compactType={null} isDroppable={true} - isDraggable={this.props.childrenDraggable} + // isDraggable={this.props.childrenDraggable} // useCSSTransforms={true} margin={[10, 10]} onLayoutChange={this.onLayoutChange} |