Skip to content

Conversation

@marbemac
Copy link
Contributor

@marbemac marbemac commented Dec 2, 2021

E.g. the one in legacy ui-kit that is used in Studio.

@marbemac marbemac requested review from a team, Nezteb, P0lip and billiegoose and removed request for billiegoose December 2, 2021 21:34
}

if (node.scrollHeight > node.clientHeight) {
if (node.scrollHeight > node.clientHeight && node.clientHeight > 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ui-kit scroll container wraps things with a 0 height 0 width "scrollable" container (freaking weird lol), which breaks this behavior. Added this extra check to ignore 0 height parent containers, which fixes the issue (I yalc'd and confirmed this in platform).

Screen Shot 2021-12-02 at 4 42 23 PM

@marbemac marbemac enabled auto-merge (squash) December 2, 2021 21:45
Copy link
Contributor

@billiegoose billiegoose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you.

@marbemac marbemac merged commit 5faeeac into master Dec 2, 2021
@marbemac marbemac deleted the mbm/ui-kit-scroll-container-compat branch December 2, 2021 21:56
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version 4.4.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.

4 participants