Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total list height (item-height*num-items) breaks at 37,282,700 pixels #103

Open
daSaf opened this issue Jun 13, 2021 · 0 comments
Open

Total list height (item-height*num-items) breaks at 37,282,700 pixels #103

daSaf opened this issue Jun 13, 2021 · 0 comments

Comments

@daSaf
Copy link

daSaf commented Jun 13, 2021

When I create a list with 1M items, each 50px high, I cannot scroll all the way down (last item is #745,653) . Looks like chrome maxes out on div height - CSS shows list's container div height is 37,282,700px, and seems it cannot grow larger.

image

See also 37,282,700px mentioned on stack-overflow.

<VirtualList
          width='100%'
          height={ 50 }
          itemCount={ 1000000 }
          itemSize={ 50 }
          estimatedItemSize={ 50 }
          overscanCount={ 1 }
          scrollToAlignment={ ALIGNMENT.START }
          scrollOffset={ 0 }
          renderItem={ ({ index, style }) => {
            return (
              <div key={ index } style={ style }
                   className={ classes.rowClass }>
                <RowItem/>
                { index }
              </div> );
          } }
        />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant