Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

[Questions & Feature Request] Grid flash when width changed and wish the grid can behave like google image #253

@hunterliu1003

Description

@hunterliu1003

I have a ProfilesGrid component that is using vue-virtual-scroll-grid, and click on a ProfileItem inside of ProfilesGrid will open a ProfileDetail aside of ProfilesGrid.

I expect when clicking a ProfileItem, the VirtualGrid should directly jump to the current index, so I use the scrollTo and set the scrollBehavior to auto.

Video:

If you check out this video frame-by-frame, you will see:

  • There is a flash when open a ProfileDetail
  • The scroll position is changed after the ProfileDetail closed

Video:

2022-09-26.2.59.52.mov

You can try it with this reproduction repo: https://github.com/hunterliu1003/poc-grid-flash


So my questions are:

  • Is it possible to remove the flash when the width of VirtualGrid changed?
  • Is it possible to keep the scroll position after the ProfileDetail closed? (Maybe execute scrollTo every time when the width changed)

I expect the grid component can behave like google images
Video:

Thanks!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions