Skip to content

Virtualization of a grid does not work correctly in scaled container #230

Description

@DaDom

When the parent container is scaled down (i.e. something like transform: scale(0.4)), the overscan does not work correctly. Rows and columns at the bottom / to the right are not rendered, I suppose because the calculation assumes they are not visible yet.

I have adjusted the example CodeSandbox for this scenario:
https://codesandbox.io/s/amazing-chandrasekhar-wivbo

You can see the issue with the grid:
Screen Cast 2021-12-16 at 2 23 04 PM

Is there any recommended way how to configure useVirtual for such cases, or is this simply a bug in the calculation?

Activity

tannerlinsley commented on Jan 20, 2022

@tannerlinsley
Member

I'm not sure how to deal with this yet so I'll be the first to say that this is an edge case the library doesn't handle right now. We might address this in the future, pending some more investigation into the issue.

locked and limited conversation to collaborators on Jan 20, 2022
converted this issue into a discussion #248 on Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions