catamphetamine / virtual-scroller

A component for efficiently rendering large lists of variable height items

Home Page:https://catamphetamine.gitlab.io/virtual-scroller/?dynamic=%E2%9C%93

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Weird jumps on grid container with gaps

felixmosh opened this issue · comments

Hi,

I've updated to the latest version (1.6.x), and I've noticed that there are some jumps of the container when the scroller stops.

I'm able to reproduce it on the demo.
ezgif-3-e8c0602e0742

All you need to do is to add css to the #messages

#messages {
    border-top: 2px solid rgb(230, 236, 240);
    display: grid; // <----
    grid-gap: 2em; // <----
}

It is not reproduces on v1.5.x.

Fixed in virtual-scroller@1.6.4

The example page is uses the latest version? if so, I still able to recreate the bug

The example page works for me when using the #messages style you've posted.

I'm still able to constantly reproduce the issue
Screen Recording 2020-12-13 at 9 31 38

I don't see any issues.

You can provide an online demo if you want, along with clear reproduction instructions.

You are correct, looks like there is a difference between changing the styles in dev-tools & starting the app with the styles.

Thank you 🙏🏼