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
When the reference, popper, and arrow elements are descendants of an element with transform style, the arrow positioning will break, while the popper position is correct. It happens only when the container with the transform style is smaller than the reference size + popper size.
To reproduce, use this test that applies a transform: scale(1); style to a parent with no visual changes:
refBox position values are calculated from the viewport. Still, when applied to the arrow that is a descendant of an element with the transform style, it is positioned based on that element instead of the viewport (Elements with transforms act as a containing block for fixed position descendants). This is why the arrow is positioned wrong horizontally in the above example.
The wrong vertical position is because of this line:
Using matched position and variant keys to infer the arrow position offsets from the popper position will fix the issue. I've proposed a fix in this PR #26.
When the reference, popper, and arrow elements are descendants of an element with
transform
style, the arrow positioning will break, while the popper position is correct. It happens only when the container with thetransform
style is smaller than the reference size + popper size.To reproduce, use this test that applies a
transform: scale(1);
style to a parent with no visual changes:the result would be:
The text was updated successfully, but these errors were encountered: