driver.js icon indicating copy to clipboard operation
driver.js copied to clipboard

If the space is not enough The popover does not appear correctly positon

Open WwanF opened this issue 2 years ago • 2 comments
trafficstars

when I set popover options side: bottom and align: center

and the element is on the left side then the popover does not appear correctly position

https://stackblitz.com/edit/stackblitz-starters-yfw5fz?file=src%2FApp.js,src%2Fstyle.css,src%2Findex.js

WwanF avatar Aug 10 '23 15:08 WwanF

You need to remove the align option for the h1 step.

The reason for this is that the h1 element is too close to the browser edge for the popover to render properly.

protogenesis avatar Aug 30 '23 09:08 protogenesis

You need to remove the align option for the h1 step.

The reason for this is that the h1 element is too close to the browser edge for the popover to render properly.

Thank you

I know what you mean but h1 is not always in this position

If I remove the align option and h1 has enough space to render properly

Due to the align default value is left It doesn't meet my expectations center

In this situation, do I need to compute a safe distance by myself and set the right align option?

WwanF avatar Sep 15 '23 09:09 WwanF