简体   繁体   中英

Offset modifier pushes part of popover outside viewport (Popper)

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)

That is not the use of offset, please review the documentation for offset

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM