Skip to content

Commit

Permalink
fix(popover/tooltip): use translate for relative offset positioning f…
Browse files Browse the repository at this point in the history
…or tooltip and popover arrows (#4850)

fixes #4849
  • Loading branch information
mcoker authored and valorkin committed Dec 12, 2018
1 parent 8c3cb31 commit 92efe9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/popover/popover-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import { isBs3 } from 'ngx-bootstrap/utils';
`
:host.bs-popover-top .arrow, :host.bs-popover-bottom .arrow {
left: 50%;
margin-left: -8px;
transform: translateX(-50%);
}
:host.bs-popover-left .arrow, :host.bs-popover-right .arrow {
top: 50%;
margin-top: -8px;
transform: translateY(-50%);
}
`
],
Expand Down
4 changes: 2 additions & 2 deletions src/tooltip/tooltip-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import { isBs3 } from 'ngx-bootstrap/utils';
}
:host.bs-tooltip-top .arrow, :host.bs-tooltip-bottom .arrow {
left: 50%;
margin-left: -6px;
transform: translateX(-50%);
}
:host.bs-tooltip-left .arrow, :host.bs-tooltip-right .arrow {
top: 50%;
margin-top: -6px;
transform: translateY(-50%);
}
`
],
Expand Down

0 comments on commit 92efe9a

Please sign in to comment.