-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
When one of the dimensions of the viewport is set to 100%, the additional margin added around the iframe causes an unnecessary scrollbar. Since the height is a percentage, it doesn't seem to make sense to force the content to be exactly 100% of the height of the storybook preview area - instead, it should probably take the extra margin into account.
To Reproduce
Steps to reproduce the behavior:
- Configure the viewport addon with a viewport with either width or height set to 100%
- Choose that viewport
- Observe that the viewport is slightly bigger than the available space.
Expected behavior
Viewport size is reduced slightly to avoid the unnecessary scrollbar. Note that this should probably do the right thing even if the viewport is close to 100%.
dmoojunk