Reputation: 2877
Using offset: '0,-30px'
in my Popper modifier. It works but now my popover doesn't fit within the viewport in some situations. Annoyingly, either Popper applies an offset or it ensures popover fits viewport, but not both.
Is there any way to make the offset
work while Popper still ensures popover fits viewport? (basically telling Popper to apply offset except when doing so creates viewport fit problems)
Upvotes: -1
Views: 410
Reputation: 149
That is not the use of offset, please review the documentation for offset. It will simply set the spacing, regardless of the page size.
Upvotes: 0