soundasleep / jquery-dropdown

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

Dropdown positioning when the trigger has a parent with position:relative #70

Closed petrasitis closed 7 years ago

petrasitis commented 9 years ago

If your trigger has a parent with position:relative the dropdown appears in the wrong position. I tried dropdown-relative but still no difference. I don't know if it matters but the trigger is in a modal.

The only solution was to remove position:relative from all the parents which isn't practical.

Any ideas.

web2feel commented 9 years ago

The relative positioned parent element of the trigger pushes the dropdown panel further away. Is there any fix?

skmasq commented 9 years ago

Workaround I came up with was to do an absolute wrap around the dropdown to adjust the position.

claviska commented 7 years ago

A new version of this plugin will rework positioning entirely so this won't be an issue. Closing due to age.