You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ZoomElement maintains a height state value that it updates using a ref to a child element and an effect hook. This approach doesn't update the height value if the child element changes in size. This means that if the component being showcased becomes larger (e.g. the component is a list of items that allows items to be added dynamically), the component will overflow the bounds of the container.
I got a very busy week coming up but should be able to fix this next weekend. If someone else would like to give this a go I'm more than happy to provide any support I can.
Describe the bug
ZoomElement
maintains aheight
state value that it updates using a ref to a child element and an effect hook. This approach doesn't update the height value if the child element changes in size. This means that if the component being showcased becomes larger (e.g. the component is a list of items that allows items to be added dynamically), the component will overflow the bounds of the container.Link to the
height
state value, effect hook immediately following: https://github.com/storybookjs/storybook/blob/master/lib/components/src/Zoom/ZoomElement.tsx#L25I've only noticed this issue in Firefox. Chrome, Safari and Edge didn't seem to have this issue.
To Reproduce
The following code in a
.stories.mdx
file should reproduce the issue:System
Additional context
Reproducible in Firefox 89.0.
Could not reproduce in Chrome 91.0.4472.114, Safari 14.1.1, or Edge Version 91.0.864.48.
The text was updated successfully, but these errors were encountered: