Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masonry: Update element width on reflow (MasonryV2) #3547

Merged
merged 1 commit into from
May 1, 2024

Conversation

liuyenwei
Copy link
Contributor

Summary

There is currently a bug with MasonryV2 where the element width is not re-calculated during a manually reflow. This PR addresses it by adding a updateElementWidth fucntion which is triggered on reflow.

Followup:
Ideally we should be able to leverage ResizeObserver to achieve this. will followup on that once we ship v2.

@liuyenwei liuyenwei requested a review from a team as a code owner April 30, 2024 20:26
Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for gestalt ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 1640a04
🔍 Latest deploy log https://app.netlify.com/sites/gestalt/deploys/663153fb3d318e00081632ae
😎 Deploy Preview https://deploy-preview-3547--gestalt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@liuyenwei liuyenwei added the patch release Patch release label Apr 30, 2024
@liuyenwei liuyenwei merged commit 68618b5 into pinterest:master May 1, 2024
15 of 16 checks passed
@liuyenwei liuyenwei changed the title Masonry: Update element height on reflow (MasonryV2) Masonry: Update element width on reflow (MasonryV2) May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release Patch release
Projects
None yet
3 participants