Closed simonw closed 9 months ago
There may well be a more elegant way of solving this, but this was the first thing I could find that actually worked.
One problem with this is that it behaves very strangely if you resize the window after opening a menu:
I think the problem here is that we already relocated the menu to document.body
which means future calls to measure its position will fail.
Thanks for your comments in the code - made it much easier to review!
Refs:
5
I have a potential fix for this bug:
With the fix applied: