Skip to content

GAUD-10486: delay scroll calculation - #7337

Merged
dlockhart merged 1 commit into
mainfrom
GAUD-10486/delay-calculation
Aug 7, 2026
Merged

GAUD-10486: delay scroll calculation#7337
dlockhart merged 1 commit into
mainfrom
GAUD-10486/delay-calculation

Conversation

@dlockhart

Copy link
Copy Markdown
Member

After #7321 merged, two filter vdiffs starting being very flaky, occasionally showing a shadow in the dropdown when there shouldn't have been one.

I dug into this pretty deeply, and what I was seeing was that the dropdown container's scrollHeight was sometimes 8px taller than its clientHeight for a very brief period of time after the resize observer fired. This happened about 25% of the time for me locally. I can only assume that it sometimes takes some time for it to reflect reality.

This wasn't an issue before #7321 because the shadows were being calculated only once and it was happening way before any of the content in the dropdown had rendered.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-7337/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

@dlockhart
dlockhart marked this pull request as ready for review August 7, 2026 20:43
@dlockhart
dlockhart requested a review from a team as a code owner August 7, 2026 20:43
@dlockhart
dlockhart merged commit a98a4b3 into main Aug 7, 2026
11 checks passed
@dlockhart
dlockhart deleted the GAUD-10486/delay-calculation branch August 7, 2026 20:43
@d2l-github-release-tokens

Copy link
Copy Markdown

🎉 This PR is included in version 3.287.1 🎉

The release is available on:

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.

2 participants