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

Position service (tooltips, popovers) jump away from element if a dom element is added above the element #1109

Closed
calvinfroedge opened this issue Oct 1, 2013 · 1 comment · Fixed by #3435

Comments

@calvinfroedge
Copy link

For example, see this screencast:

http://screencast.com/t/yflYrdBP

You can also reproduce this bug by adding DOM elements above popover / tooltip elements on the demo site. The problem is that position is absolute, calculated on show, instead of elements being anchored. Possible solutions are anchoring to element on which tooltip / popover is applied, or listening for changes in height and adjusting accordingly.

@chrisirhc
Copy link
Contributor

Related to #96 and perhaps the solution to #96 should consider this and this is a good argument for just doing re-positioning on each $digest in #1415.

chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Mar 25, 2015
Reposition on each digest, this ensures that the tooltip is always positioned
correctly no matter how its content changes.

Fixes angular-ui#96
Fixes angular-ui#1109
Closes angular-ui#2816
@chrisirhc chrisirhc added this to the 0.13.0 milestone Mar 25, 2015
@chrisirhc chrisirhc self-assigned this Mar 25, 2015
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Mar 25, 2015
Reposition on each digest, this ensures that the tooltip is always positioned
correctly no matter how its content changes.

Fixes angular-ui#96
Fixes angular-ui#1109
Closes angular-ui#2816
Closes angular-ui#3435
chrisirhc added a commit to chrisirhc/angular-ui-bootstrap that referenced this issue Mar 27, 2015
Reposition on each digest, this ensures that the tooltip is always positioned
correctly no matter how its content changes.

Fixes angular-ui#96
Fixes angular-ui#1109
Closes angular-ui#2816
Closes angular-ui#3435
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants