Skip to content

Commit

Permalink
fix(popover): Linter errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonVay committed May 26, 2020
1 parent 93a7d35 commit 22d4ef0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mosaic/popover/popover.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export class McPopover implements OnInit, OnDestroy {

const verticalOffset = this.hostView.element.nativeElement.clientHeight / 2; // tslint:disable-line
const anchorElementWidth = this.hostView.element.nativeElement.clientWidth; // tslint:disable-line
const anchorElementHeight = verticalOffset * 2;
const anchorElementHeight = verticalOffset * 2; // tslint:disable-line

if (updatedPlacement === 'rightTop' || updatedPlacement === 'leftTop') {
const currentContainer = this.overlayRef.overlayElement.style.top || '0px';
Expand Down Expand Up @@ -787,6 +787,7 @@ export class McPopover implements OnInit, OnDestroy {
if (this.mcPlacementPriority) {
return this.getPriorityPlacementStrategy(this.mcPlacementPriority);
}

return POSITION_PRIORITY_STRATEGY[this.mcPlacement];
}
}

0 comments on commit 22d4ef0

Please sign in to comment.