Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Right alignment is off for dropdown-append-to-body .dropdown-menu-right when there's a vertical scrollbar #4317

Closed
ilameda-RA opened this issue Sep 1, 2015 · 2 comments

Comments

@ilameda-RA
Copy link

This is related to issue #3820
#3820

The right alignment is off when there's a scroll bar.
Demo link: http://plnkr.co/edit/y6qOfyjM54YE8Ft1Vxj6?p=preview

Both dropdowns have dropdown-menu-right.
The first dropdown has the dropdown-append-to-body white the second doesn't.

If the height of the "TRIGGER SCROLL" div is changed to 200px, for example, then the alignment is fine in both dropdowns.

The alignment should be the same in both scenarios

Thanks

@wesleycho
Copy link
Contributor

@RobJacobs given your scrollbar work, I'm pointing you to this issue for comment :) .

@almeidap
Copy link

This fix solves the positioning problem with right-aligned dropdown menus but the menu position is not correctly updated when a window resize occurs and the Bootstrap grid collapses.

You can see the issue here if you open the first dropdown menu and shrink the window until grid collapses:
http://plnkr.co/edit/l2wW2ydgnRVuV86q8TEV?p=preview

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants