Skip to content

List content is being trimmed by AutoSizer in components with transforms #2452

@KostyaAvtushko

Description

@KostyaAvtushko

Describe the bug

The problem is that the AutoSizer component in the virtualized List uses getBoundingClientRect of the parent, however, getBoundingClientRect may not work stably if transform rotate or scale is present

Reproduction

https://stackblitz.com/edit/gravity-ui-uikit-example-flmadev7?file=src%2FApp.tsx,src%2Findex.css,src%2FApp.css,src%2Findex.tsx

Steps to reproduce

No response

Environment

Any browser, macos

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions