Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position of tooltip is slightly shifted #2067

Closed
kubica opened this issue Jan 2, 2018 · 1 comment
Closed

Position of tooltip is slightly shifted #2067

kubica opened this issue Jan 2, 2018 · 1 comment

Comments

@kubica
Copy link

kubica commented Jan 2, 2018

Bug description:

This issue is similar to #1845. The tooltip arrow is not shown at the middle of the element (see picture).

Alternativer Text

Same problem for placement="right" etc.

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/edit/EPGCNPOGN0EAKXUCwAU3?p=preview

Workaround

.bs-tooltip-top .arrow, .bs-tooltip-bottom .arrow {
    margin-left: -2px;
}
.bs-tooltip-left .arrow, .bs-tooltip-right .arrow {
    margin-top: -2px;
}

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 5.0.2

ng-bootstrap: 1.0.0-beta.8

Bootstrap: 4.0.0-beta.2

@bastienmoulia
Copy link
Contributor

Actually there is in the CSS of the tooltip arrow

left: 50%;

And we can use

left: calc(50% - 2.5px);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants