react-tiny-virtual-list icon indicating copy to clipboard operation
react-tiny-virtual-list copied to clipboard

Use window as container instead of element

Open alexbrazier opened this issue 6 years ago • 1 comments

Is it possible to use the window as the container element, so it increases the height of the main scrollbar, rather than having the table in a container with its own scrollbar?

It appears react-virtual-list does this, but it requires fixed height elements.

alexbrazier avatar Oct 12 '17 13:10 alexbrazier

When the scroll direction is vertical and use "100%" as the height, it will pass "100%" as the containerSize to the getVisibleRange function, so the maxOffset will become "0100%" (i.e. 0 + "100%").

screen shot 2018-01-15 at 11 15 50

Is it possible to get the actual container height if the height prop is a string?

cheton avatar Jan 20 '18 03:01 cheton