react-treelist
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "react-treelist", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A React treelist component to display data in tree structure.", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-treelist.js", |
@@ -156,2 +156,15 @@ import '../css/body.css'; | ||
let tableBody; | ||
if (typeof height === 'number') { | ||
tableBody = ( | ||
<tbody> | ||
<tr style={{ height: topFillerHeight }}></tr> | ||
{visibleRows} | ||
<tr style={{ height: bottomFillerHeight }}></tr> | ||
</tbody> | ||
); | ||
} else { | ||
tableBody = <tbody>{rows}</tbody>; | ||
} | ||
return ( | ||
@@ -162,7 +175,3 @@ <div className='tgrid-body-wrapper' | ||
<Colgroup columns={columns}></Colgroup> | ||
<tbody> | ||
<tr style={{ height: topFillerHeight }}></tr> | ||
{visibleRows} | ||
<tr style={{ height: bottomFillerHeight }}></tr> | ||
</tbody> | ||
{tableBody} | ||
</table> | ||
@@ -169,0 +178,0 @@ </div> |
Sorry, the diff of this file is too big to display
757544
21695