Skip to content

Commit b121e32

Browse files
authored
fix(tooltip): minification issue (#7430)
1 parent 8b715e0 commit b121e32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/tooltip/tooltip.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,7 @@ export class TooltipComponent {
525525
/** Sets the tooltip transform origin according to the position of the tooltip overlay. */
526526
_setTransformOrigin(overlayPosition: ConnectionPositionPair) {
527527
const axis = (this._position === 'above' || this._position === 'below') ? 'Y' : 'X';
528-
const position = overlayPosition[`overlay${axis}`] as HorizontalConnectionPos |
529-
VerticalConnectionPos;
528+
const position = axis == 'X' ? overlayPosition.overlayX : overlayPosition.overlayY;
530529

531530
if (position === 'top' || position === 'bottom') {
532531
this._transformOrigin = position;

0 commit comments

Comments
 (0)