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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

farooqu
Copy link
Contributor

@farooqu farooqu commented Nov 30, 2016

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
Copy link
Contributor Author

farooqu commented Dec 1, 2016

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
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants