Skip to content

fix(ui5-list): adjust observer to handle sticky headers#11526

Merged
NakataCode merged 1 commit intomainfrom
list-growing-firefox-sticky-header
May 15, 2025
Merged

fix(ui5-list): adjust observer to handle sticky headers#11526
NakataCode merged 1 commit intomainfrom
list-growing-firefox-sticky-header

Conversation

@NakataCode
Copy link
Contributor

@NakataCode NakataCode commented May 15, 2025

Problem:
The list's onLoadMore event is not triggered in Firefox at certain zoom levels when a sticky header is present. This is due to how Firefox calculates intersections with sticky positioned elements, causing subpixel rendering issues.

Solution:
Use the proper scroll container as the root for the IntersectionObserver and add a rootMargin of 5px.

Similar to: #11242
Fixes: #11461

@NakataCode NakataCode marked this pull request as ready for review May 15, 2025 07:07
@PetyaMarkovaBogdanova PetyaMarkovaBogdanova self-requested a review May 15, 2025 07:28
@NakataCode NakataCode merged commit e46b867 into main May 15, 2025
12 checks passed
@NakataCode NakataCode deleted the list-growing-firefox-sticky-header branch May 15, 2025 12:15
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.11.0-rc.2 🎉

The release is available on v2.11.0-rc.2

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[List]: Growing list onLoadMore event not triggered in Firefox

3 participants