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

horizontally keep in viewport #1016

Closed
wants to merge 1 commit into from
Closed

Conversation

janza
Copy link

@janza janza commented May 4, 2015

aligns menu to the right border of the element if it doesn't fit in viewport
horizontally

aligns menu to the right border of the element if it doesn't fit in viewport
horizontally
@caseyjhol
Copy link
Member

Hrmm...wouldn't it be better to keep it left aligned if it doesn't fit in the viewport? Then you could at least see the beginning of each option, rather than the end? This might be useful for a right-to-left implementation, though.

@janza
Copy link
Author

janza commented May 5, 2015

You are right, this is for the cases where there is space on the left of the select box, but the right part goes out of the viewport. I'll update the pull request making sure that when there's no space on the left to stay left aligned.

@caseyjhol caseyjhol closed this in 8ffc0de Mar 4, 2016
avantika-gupta-jtg pushed a commit to JoshLabs/bootstrap-select that referenced this pull request 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

Successfully merging this pull request may close these issues.

2 participants