denisraslov/react-spreadsheet-grid

Feature request: height property

kasbah opened this issue · 1 comments

I am getting an extra scrollbars on my page sometimes. I have other components on the top of the page.

image

I think this could be solved by letting me set a height property. I could then get the height from something like react-virtualized-auto-sizer and use that.

Hi @kasbah

If I understood this issue correctly, it's available to set a height for the grid right now already. The grid gets the height of a container where it is rendered, so to set the height of the grid, you have to set the height for the container.

For example (here the height of the grid is 100px):

<div style={{ height: '100px' }}>
   <Grid />
</div>