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

Added support for dropdown-menu being right aligned, see angular-ui/bootstrap#3820 #3913

Closed
wants to merge 1 commit into from
Closed

Conversation

schmuli
Copy link
Contributor

@schmuli schmuli commented Jul 8, 2015

Bootstrap has a 'dropdown-menu-right' class, which is used to display a dropdown menu aligned to the right edge of the toggle, rather than the left.

This PR adds a check in the case of append-to-body, and calculates the correct right-aligned position of the dropdown menu element.

This would then be able to close #3820.

Bootstrap has a 'dropdown-menu-right' class, which is used to display a
dropdown menu aligned to the right edge of the toggle, rather than the
left.
This PR adds a check in the case of append-to-body, and calculates the
correct right-aligned position of the dropdown menu element.
@wesleycho
Copy link
Contributor

This looks good - here is a Plunker with your changes for reference.

@wesleycho wesleycho added this to the 0.13.1 (Performance) milestone Jul 20, 2015
@wesleycho wesleycho closed this in 2332f14 Jul 20, 2015
@schmuli schmuli deleted the dropmenu-menu-right branch August 4, 2015 19:59
@schmuli schmuli restored the dropmenu-menu-right branch August 4, 2015 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dropdown-append-to-body doesn't work with .dropdown-menu-right
2 participants