soundasleep / jquery-dropdown

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

Add window resize handling to keep drop down properly positioned #5

Closed cstigler closed 12 years ago

cstigler commented 12 years ago

Hi, I was trying to use this plugin but noticed that when the window was resized with the dropdown open, the dropdown doesn't move itself to be properly positioned. This adds that functionality with two quick statements (I think a more elegant way to handle this would be to make the CSS automatically keep it in the right place, but this is a good quick fix that looks fine).

claviska commented 12 years ago

Solved by hiding the dropdown when the window is resized.