From a68fcfa5a1c086c7ce48f3185f379e1134fce28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ante=20Bari=C5=A1i=C4=87?= Date: Fri, 8 Sep 2017 16:52:46 +0200 Subject: [PATCH] Add row info to rowHeight function Enable modifying height based on row info. --- src/react-sortable-tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react-sortable-tree.js b/src/react-sortable-tree.js index 3d2bf702..b2f5c223 100644 --- a/src/react-sortable-tree.js +++ b/src/react-sortable-tree.js @@ -558,7 +558,7 @@ class ReactSortableTree extends Component { height: typeof rowHeight !== 'function' ? rowHeight - : rowHeight({ index }), + : rowHeight({ index, row }), }, () => rows[index - 1] || null, matchKeys