@kitten-team/react-native-sortable-grid
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -282,3 +282,4 @@ import * as React from 'react' | ||
let blockIndex = _.findIndex(this.itemOrder, item => item.order === order) | ||
let x = (order * this.state.blockWidth) % (this.itemsPerRow * this.state.blockWidth) | ||
const columnOnRow = order % this.itemsPerRow; | ||
const x = columnOnRow * this.state.blockWidth; | ||
let y = Math.floor(order / this.itemsPerRow) * (this.state.blockHeight + ROW_MARGIN) | ||
@@ -285,0 +286,0 @@ this.state.blockPositions[blockIndex].origin = {x, y} |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Drag-and-drop sortable grid view for React Native.", | ||
@@ -11,0 +11,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
206972
996