Skip to content

[labs/virtualizer] Calculates size incorrectly when a scrolling ancestor has padding #3400

@usergenic

Description

@usergenic

Which package(s) are affected?

Virtualizer (@lit-labs/virtualizer)

Description

Gray already figured out the fix for this. Just adding to an issue to get this added to sprint plan...

image

Reproduction

This demos the issue with an 80px padding for the element containing the virtualizer
https://lit.dev/playground/#gist=3f55b065eb257cbaf21b1168cbb65093

Workaround

n/a

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

masonry preview and 0.7.2

Browser/OS/Node environment

n/a

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions