-1

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)

drake035
  • 3,955
  • 41
  • 119
  • 229
  • 4
    You probably need to show a Minimal, Reproducible Example: https://stackoverflow.com/help/minimal-reproducible-example – stdob-- Dec 08 '21 at 17:30
  • What version of popper are you using? If I'm not mistaken `offset` requires an object as parameter, not a string. And yes some example code would help if you work like an answer. – Ferry Kranenburg Dec 09 '21 at 19:22

1 Answers1

0

That is not the use of offset, please review the documentation for offset. It will simply set the spacing, regardless of the page size.

dilan_s
  • 129
  • 1
  • 10