We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b715e0 commit b121e32Copy full SHA for b121e32
src/lib/tooltip/tooltip.ts
@@ -525,8 +525,7 @@ export class TooltipComponent {
525
/** Sets the tooltip transform origin according to the position of the tooltip overlay. */
526
_setTransformOrigin(overlayPosition: ConnectionPositionPair) {
527
const axis = (this._position === 'above' || this._position === 'below') ? 'Y' : 'X';
528
- const position = overlayPosition[`overlay${axis}`] as HorizontalConnectionPos |
529
- VerticalConnectionPos;
+ const position = axis == 'X' ? overlayPosition.overlayX : overlayPosition.overlayY;
530
531
if (position === 'top' || position === 'bottom') {
532
this._transformOrigin = position;
0 commit comments