fix:[M3-10335] - useIsPageScrollable hook is not working correctly for slightly taller pages#12695
Merged
bill-akamai merged 22 commits intolinode:developfrom Sep 5, 2025
Merged
Conversation
Create debug-M3-9877.yml
|
This PR is stale because it has been open 15 days with no activity. Please attend to this PR or it will be closed in 5 days |
Collaborator
Cloud Manager UI test results🎉 738 passing tests on test run #5 ↗︎
|
dwiley-akamai
approved these changes
Sep 4, 2025
Contributor
dwiley-akamai
left a comment
There was a problem hiding this comment.
I don't have a large external monitor, but I tested by zooming out to 75% on the page, and was able to confirm isPageScrollable doesn't return as true until I shrink the vertical size smaller than the approximate line shown.
coliu-akamai
approved these changes
Sep 5, 2025
Contributor
coliu-akamai
left a comment
There was a problem hiding this comment.
same with Dajahi, I don't have a super large monitor but tested with zooming out on the page - things are looking good
thanks @bill-akamai!
This was referenced Sep 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description 📝
This PR fixes the
useIsPageScrollablereturningfalseon slightly taller pages by including footer height in the calculation.Changes 🔄
FOOTER_HEIGHTconstant topackages/manager/src/features/Footer.tsxuseIsPageScrollablehook to include this height in the scrollability calculationScope 🚢
Upon production release, changes in this PR will be visible to:
Preview 📷
isPageScrollableisfalsewhen main content is cut offisPageScrollableistrueat target locationReproduction steps
Reproduction of this bug is kind of tricky but here's what you can do:
packages/manager/src/Root.tsxadd this log:console.log('isPageScrollable', isPageScrollable);/linodes/[linode id]/networking)isPageScrollabledoes not returntrueuntil a portion of the content is cut off rather than the threshold target from the screenshot above.Verification steps
isPageScrollablereturnstrueat the approximate target line location from the screenshot above.Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅