soundasleep / jquery-dropdown

Bootstrap-style dropdowns with some added features and no dependencies.
Other
767 stars 266 forks source link

Wrong Position with Fixed Container #39

Closed gabrielnahmias closed 11 years ago

gabrielnahmias commented 11 years ago

I am using this plugin in a toolbar-like header which is constantly at the top of the window (fixed). Everything works fine if you don't scroll as shown below:

Correct

However, if you close out of it, scroll, then trigger the menu again (it looks fine if you simply scroll with it open) it becomes:

Incorrect

I suppose I could put the dropdown menus inside of another container not in the fixed one but this seems like something that should be addressed. This is a fantastically simple plugin and I hope it prospers! Thanks.

gabrielnahmias commented 11 years ago

Nevermind, I read the documentation more throughly and realized I needed to add the dropdown-relative class to my dropdown container.