Skip to content

fix(layout): exclude items at viewport end - #2534

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/flash-list-2533-visible-boundary
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/flash-list-2533-visible-boundary

Conversation

@efegokdemir

Copy link
Copy Markdown

Description

Fixes #2533 in @shopify/flash-list. getVisibleLayouts now excludes trailing layouts whose leading edge is at the end of a non-empty viewport, including all cells in a boundary grid row. Zero-size viewport and partial-visibility behaviour are covered by regression tests.

Validation passed: Jest (15 suites, 204 tests), lint, type-check, and build. The vertical and horizontal regression tests failed before the fix and pass now.

Reviewers’ hat-rack 🎩

  • Please check the viewport-edge handling for linear and grid layouts.

Screenshots or videos (if needed)

Not applicable.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2: item whose leading edge sits exactly at the viewport end counts as visible — full-page pagers render an extra page before first paint

1 participant