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
{{ message }}
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
Use 'absolute' positioning for menu instead of 'fixed'
The 'fixed' approach has a major downside:
The 'fixed' referential may not be the document when a parent node has CSS transforms.
But getBoundedClientRect() remains relative to the document no matter what.
Calculating a fixed position from it is difficult.
Using 'absolute' positioning makes things a lot easier. It is how bootstrap
dropdown menu works for example.
0 commit comments