Skip to content

Commit de56f10

Browse files
fix(tooltip): fix arrow positioning in Bootstrap beta.3
Fixes #2067
1 parent 20ba716 commit de56f10

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tooltip/tooltip.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ let nextId = 0;
3434
template: `<div class="arrow"></div><div class="tooltip-inner"><ng-content></ng-content></div>`,
3535
styles: [`
3636
:host.bs-tooltip-top .arrow, :host.bs-tooltip-bottom .arrow {
37-
left: 50%;
37+
left: calc(50% - 0.4rem);
3838
}
3939
4040
:host.bs-tooltip-top-left .arrow, :host.bs-tooltip-bottom-left .arrow {
@@ -43,20 +43,20 @@ let nextId = 0;
4343
4444
:host.bs-tooltip-top-right .arrow, :host.bs-tooltip-bottom-right .arrow {
4545
left: auto;
46-
right: 1em;
46+
right: 0.8rem;
4747
}
4848
4949
:host.bs-tooltip-left .arrow, :host.bs-tooltip-right .arrow {
50-
top: 50%;
50+
top: calc(50% - 0.4rem);
5151
}
5252
5353
:host.bs-tooltip-left-top .arrow, :host.bs-tooltip-right-top .arrow {
54-
top: 0.7em;
54+
top: 0.4rem;
5555
}
5656
5757
:host.bs-tooltip-left-bottom .arrow, :host.bs-tooltip-right-bottom .arrow {
5858
top: auto;
59-
bottom: 0.7em;
59+
bottom: 0.4rem;
6060
}
6161
`]
6262
})

0 commit comments

Comments
 (0)