mgcrea / angular-strap

AngularJS 1.2+ native directives for Bootstrap 3.
mgcrea.github.io/angular-strap
MIT License
5.73k stars 1.38k forks source link

Autoplacement in tooltip (dropdown) doesn't work right. #2169

Closed RusovVladimir closed 5 years ago

RusovVladimir commented 8 years ago

http://plnkr.co/edit/hEJovbpTFGF4L5jKKc3S Dropdown directive has attribute placement. When I append word auto, directive works bad. Click to all buttons to see the issue.

In index.html uncomment line 15 and comment line 11 and click to all buttons to see right behaviour. Illustration: https://drive.google.com/file/d/0B1C108aX6zE0eF95RnBZV3NKb3c/view?usp=sharing

I have fixed a problem. Please see file angular-strap/src/tooltip/tooltip.js of branch master, lines 581, 584 in function getCalculatedOffset(). I simply exchange lines 581, 584, and problem gone.

Rex90 commented 8 years ago

Im also having issues with the placement going off screen

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.