You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has left: 132px applied by popper.js. However the popover itself has a width of 276px, so the center should rather be 137px. And indeed if I set this manually to this value or left: 50% in Chrome Dev Tools, then it is perfectly aligned! So somewhere this 5px offset is causing the misalignment.
The text was updated successfully, but these errors were encountered:
Right! Popper positions this correctly, just the pseudo elements (responsible for rendering the actual arrow) should be aligned to the center of .arrow, not the left edge! (or .arrow should have a zero width?)
Seems similar to #23793, although I could not reproduce the issue for tooltips, but indeed for popovers.
Here is a demo: https://codepen.io/simonihmig/pen/WdxXja. The first button triggers a popover, where you can clearly see that the arrow is misaligned.
It has
left: 132px
applied by popper.js. However the popover itself has a width of276px
, so the center should rather be137px
. And indeed if I set this manually to this value orleft: 50%
in Chrome Dev Tools, then it is perfectly aligned! So somewhere this 5px offset is causing the misalignment.The text was updated successfully, but these errors were encountered: