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
Describe the bug
We are using the controls add-on. When we have a large number of controls rendered, the panel isn't shown anymore as soon as it runs out of vertical space. We only see the preview and the panel is hidden behind it but not visible due to a low (non-existing) z-index.
To Reproduce
I found only one consistent way to reproduce the bug.
Increase the Panels height by dragging it to the top
Reduce the browsers window and make the Panel "overflow" the Preview
Reload the browser
Wonder where the Panel is gone
Increase the height of the browser window
See your panel again
Expected behavior
Have the panel always visible.
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
If applicable, add code samples to help explain your problem.
Additional Information
Why is this a problem? I guess the height of the panel is stored somewhere in local storage. Since we are embedding storybook into a styleguide, the available viewport there is much smaller than the browsers window. If someone is visiting our storybook application and dragging the panel (height stored in local storage) and is then visiting the styleguide where the same story is loading in an iframe, the panel's height is too big and therefore not rendered in the styleguide.
At least that's what I imagine what's happening.
The text was updated successfully, but these errors were encountered:
weaintplastic
changed the title
Panel isn't visble when it's content is too large
Panel isn't visible when its content is too large
Apr 16, 2021
weaintplastic
changed the title
Panel isn't visible when its content is too large
Panel isn't visible when its size is exceeding the viewport height
Apr 19, 2021
Describe the bug
We are using the controls add-on. When we have a large number of controls rendered, the panel isn't shown anymore as soon as it runs out of vertical space. We only see the preview and the panel is hidden behind it but not visible due to a low (non-existing) z-index.
storybook/lib/ui/src/components/layout/container.tsx
Line 139 in 1e97c26
To Reproduce
I found only one consistent way to reproduce the bug.
Expected behavior
Have the panel always visible.
Screenshots
If applicable, add screenshots to help explain your problem.
Code snippets
If applicable, add code samples to help explain your problem.
Additional Information
Why is this a problem? I guess the height of the panel is stored somewhere in local storage. Since we are embedding storybook into a styleguide, the available viewport there is much smaller than the browsers window. If someone is visiting our storybook application and dragging the panel (height stored in local storage) and is then visiting the styleguide where the same story is loading in an iframe, the panel's height is too big and therefore not rendered in the styleguide.
At least that's what I imagine what's happening.
The text was updated successfully, but these errors were encountered: