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

feat(position): add 'positionElementAt' method - #6339

Open
farooqu wants to merge 1 commit into
angular-ui:masterfrom
farooqu:position-elementAt
Open

feat(position): add 'positionElementAt' method#6339
farooqu wants to merge 1 commit into
angular-ui:masterfrom
farooqu:position-elementAt

Conversation

@farooqu

@farooqu farooqu commented Nov 30, 2016

Copy link
Copy Markdown
Contributor

Add a method to position an element at client x/y coordinates. Using
code from the positionElements method, which has been refactored into a
positionElement method with both positionElementAt and positionElements
use.

@farooqu

farooqu commented Dec 1, 2016

Copy link
Copy Markdown
Contributor Author

I'm creating a context menu directive, and was wanting to use the same positioning logic as all of the bootstrap elements we use.

@farooqu
farooqu force-pushed the position-elementAt branch 2 times, most recently from 94b766b to 8481323 Compare December 13, 2016 03:47
Add a method to position an element at client x/y coordinates. Using
code from the positionElements method, which has been refactored into a
positionElement method with both positionElementAt and positionElements
use.
@wesleycho

Copy link
Copy Markdown
Contributor

I'm not sure I see the value of this in the library itself - it doesn't appear like something anything in UI Bootstrap would use.

In addition, this appears to be wholly independent code - one could just create a wrapper around the UI Bootstrap $uibPosition service and add this method to the wrapper, or decorate it with $provide.decorator. There are lots of ways to place it in one's application that doesn't require shipping code that is unused for most users.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.