Skip to content

Commit

Permalink
bugfix: tooltip content placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Algoritm211 committed Jul 9, 2024
1 parent ff89cfe commit eccebde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class TooltipContentComponent implements AfterViewInit {
const { top, left } = PositionHelper.positionContent(this.placement, elmDim, hostDim, this.spacing, this.alignment);

this.renderer.setStyle(nativeElm, 'top', `${top}px`);
this.renderer.setStyle(nativeElm, 'left', `${left}px`);
this.renderer.setStyle(nativeElm, 'left', `${left < 0 ? 0 : left}px`);
}

positionCaret(hostDim: DOMRect, elmDim: DOMRect): void {
Expand Down

0 comments on commit eccebde

Please sign in to comment.