Merge pull request #21659 from ZheyangSong/react-grid-layout

React-Grid-Layout: Add `preventCollision`
This commit is contained in:
Armando Aguirre
2017-12-01 14:27:05 -08:00
committed by GitHub

View File

@@ -178,6 +178,11 @@ declare namespace ReactGridLayout {
*/
isRearrangeable?: boolean;
/**
* If true, grid items won't change position when being dragged over.
*/
preventCollision?: boolean;
/**
* Uses CSS3 `translate()` instead of position top/left.
* This makes about 6x faster paint performance.