From b37b188f9472456d7990c02e4644e434ffad6e0d Mon Sep 17 00:00:00 2001 From: Sami Ede Date: Thu, 18 Jul 2019 18:00:57 +0200 Subject: [PATCH] Correction to height calculation of list --- src/DraggableList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DraggableList.js b/src/DraggableList.js index 3aeeb59..0db236c 100644 --- a/src/DraggableList.js +++ b/src/DraggableList.js @@ -67,7 +67,7 @@ class DraggableGridView extends Component { get wrapperStyle() { const { itemsPerRow, itemHeight } = this.props; - const height = (Math.round(this.itemsLength / itemsPerRow) + 1) * itemHeight; + const height = (Math.floor(this.itemsLength / itemsPerRow) + 1) * itemHeight; return { height }; }