Skip to content

Commit

Permalink
fix(manu-tooltip): fixed tooltip left position if it don't get config
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyKIron committed Jun 5, 2024
1 parent d771f6b commit 4ab80ec
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class TooltipV4Directive implements OnDestroy, AfterViewInit {
this.preventTooltipToClose = config?.preventTooltipToClose;
this.position = config?.position || TooltipPosition.Top;
this.suppressPositionArrow = config?.suppressPositionArrow;
// this.positionOffset = config?.positionOffset ?? 0;
this.positionOffset = config?.positionOffset ?? 0;
}
}

Expand All @@ -47,7 +47,7 @@ export class TooltipV4Directive implements OnDestroy, AfterViewInit {
backgroundColor: string;
preventTooltipToClose: boolean = false;
suppressPositionArrow: boolean = false;
// positionOffset: number;
positionOffset: number = 0;

private visible = false;
private onDestroy$ = new Subject<void>();
Expand Down Expand Up @@ -189,7 +189,7 @@ export class TooltipV4Directive implements OnDestroy, AfterViewInit {

this.tooltipPosition = {
position: pos,
left: tooltipLeft /* + this.positionOffset*/,
left: tooltipLeft + this.positionOffset,
top: shiftPosition.top + rect.top
};
}
Expand Down

0 comments on commit 4ab80ec

Please sign in to comment.