bvaughn / react-window

React components for efficiently rendering large lists and tabular data
https://react-window.now.sh/
MIT License
15.49k stars 778 forks source link

The height given to HTML dom element pointed by outerElementType is not recomputed when resizes its browser window #721

Closed alberto-f closed 1 year ago

alberto-f commented 1 year ago

Is there any way to recompute the initial height given to the dom element pointed by outerElementType ?

An issue arises when a user is scrolling the items and decides to make the browser window larger. At this point, the style given to the dom element pointed by outerElementType is not recomputed. Thus, while the browser window got larger the list remains with the same height.

The code I refer looks like this:

<div style="position: relative; height: 246px; width: 100%; overflow: auto; will-change: transform; direction: ltr;">

Is there any way to recompute the height ?

alberto-f commented 1 year ago

It seems that it comes from the height property that we define.

Sorry for the noise.