简体   繁体   中英

Configure popper.js orientation

Is it possible to configure orientation on a popover through popper.js?

Like, showing it aligned right, but going towards left?

Thank you very much

This problem occurs often when your parent container is not wide enough to receive popover content.

At the moment, I'm dealing with it by disabling preventOverflow like this :

new Popper(ref, pop, {
  modifiers: {
    preventOverflow: { enabled: false }
  }
})

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