The calculation of the right boundary isn't including the opener's width, so it's allowing the menu to spill over the window boundary when the dropdown is located close to the right margin.
Specifically on lines 162 and 175, this code:
left + mw > _window.width()
needs to be:
oo.left + left + mw > _window.width()
I'd create a pull request, but I don't have the access rights to create a new branch.
The calculation of the right boundary isn't including the opener's width, so it's allowing the menu to spill over the window boundary when the dropdown is located close to the right margin.
Specifically on lines 162 and 175, this code:
left + mw > _window.width()
needs to be:
oo.left + left + mw > _window.width()
I'd create a pull request, but I don't have the access rights to create a new branch.
Thanks!