-
Notifications
You must be signed in to change notification settings - Fork 6.7k
feat(tooltip): support placement="mouse" #527
Conversation
lanterndev
commented
Jun 16, 2013
- uses $position service's new mouse() API
- works for popover too
* uses $position service's new mouse() API * works for popover too
Hey @Skivvies - I don't have a problem including something like this, even if Twitter did explicitly choose to exclude it. The code is clean enough for me. Two things, though -
Other than that, looks good to me. |
This change unconditionally binds a document |
@joshdmiller wrote:
Awesome! I tested in Chrome, Safari, Firefox, and IE9, and they're all working. Re unit tests, I actually looked in https://github.com/angular-ui/bootstrap/blob/master/src/tooltip/test/tooltip.spec.js for unit tests for the other placement options ("left", "right", etc.) so I could add one for "mouse", but none of them are currently being tested. I wasn't sure if there was some good reason you're not testing the other options (maybe it's messy to check that the tooltip's position matches expectations), so I didn't add it. Would it make sense to accept this without the mouse-placement-specific unit test, and add tests for all the placement options in a separate PR? |
Temporarily use custom built version of angular-ui-bootstrap while the fix for angular-ui/bootstrap#387 has not yet been released with additional patch to support tooltip-placement="mouse". Once angular-ui/bootstrap#527 is merged and 0.4.0 is released, can switch to including "angular-ui-bootstrap-bower": "~0.4.0" in bower.json.
Temporarily use custom built version of angular-ui-bootstrap while the fix for angular-ui/bootstrap#387 has not yet been released with additional patch to support tooltip-placement="mouse". Once angular-ui/bootstrap#527 is merged and 0.4.0 is released, can switch to including "angular-ui-bootstrap-bower": "~0.4.0" in bower.json.
Landed as ace7bc6. |
Thanks for merging! On Sun, Jun 23, 2013 at 1:24 PM, Josh David Miller <[email protected]
|