Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't always align to left:0 #1127

Closed
CCInc opened this issue Aug 18, 2015 · 2 comments
Closed

Don't always align to left:0 #1127

CCInc opened this issue Aug 18, 2015 · 2 comments

Comments

@CCInc
Copy link

CCInc commented Aug 18, 2015

I'm not very sure how to word this, but if you'll look at this you can see that the long options cause a horizontal overflow due to the css value left:0 always active.

Image of bootstrap-select behavior

This is in contrast to the native select behavior where the dropdown simply aligns to the right.

Image of native behavior

I feel it would be better to implement this behavior, or at least give the user a choice. It would be a very simple fix.

Thanks!

@caseyjhol
Copy link
Member

You can set dropdownAlignRight or data-dropdown-align-right to true to manually align the menu. However, I would like to implement a method to do it automatically (similar to dropupAuto).

@CCInc
Copy link
Author

CCInc commented Aug 19, 2015

I just saw this pull request, I'm guessing that is similar to the code needed for this issue?

avantika-gupta-jtg pushed a commit to JoshLabs/bootstrap-select that referenced this issue May 14, 2020
If dropdownAlignRight is set to 'auto', the menu will auto align to the
right if there's not enough room to open aligned to the left. close
snapappointments#1127, close snapappointments#1016, close snapappointments#1160, close snapappointments#1269
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants