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
Create a story with a static fixed width element, and an absolute-positioned element
Notice how the absolute-positioned element will be positioned relatively to the static fixed width element, and not the window
Expected behavior
Expected the absolute-positioned element to be positioned relatively to the window
Screenshots
^ This menu should be positioned relatively to the window because there is no wrapping relative div. It should stick to the left and right edges precisely.
Code snippets
If applicable, add code samples to help explain your problem.
Hey @yachaka, thanks for the bug report. Fortunately (unfortunately?) we are going to deprecate addon-info and move it to the addons panel #1147 as soon as v5 is out, so probably won't get around to this, but if anybody wants to submit a PR with the fix I'd probably release it in the meantime. Closing for now! 🙇
Describe the bug
See https://github.com/storybooks/storybook/blob/master/addons/info/src/components/Story.js#L49
Story is being wrapped in a
position: relative;
div.Combined with the centering addon, it makes it so absolute element are not positioned relatively to the window but to the story itself.
To Reproduce
Expected behavior
Expected the absolute-positioned element to be positioned relatively to the window
Screenshots
^ This menu should be positioned relatively to the window because there is no wrapping relative div. It should stick to the left and right edges precisely.
Code snippets
If applicable, add code samples to help explain your problem.
System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: