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 17984fb commit e2ae08e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 0 additions & 5 deletions packages/mosaic-dev/popover/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ app {
color: red;
}

.proove {
height: 100px;
width: 100px;
}

.container {
width: 100%;
height: 100%;
Expand Down
6 changes: 1 addition & 5 deletions packages/mosaic/popover/popover.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ export class McPopover implements OnInit, OnDestroy {
}

onPositionChange($event: ConnectedOverlayPositionChange): void {
console.trace();
let updatedPlacement = this.mcPlacement;
Object.keys(this.availablePositions).some((key) => {
if ($event.connectionPair.originX === this.availablePositions[key].originX &&
Expand Down Expand Up @@ -713,7 +714,6 @@ export class McPopover implements OnInit, OnDestroy {
});
}

this.updatePosition();
this.popover.show();
this.resizeObserver
.observe(document.querySelector('.mc-popover__container'));
Expand Down Expand Up @@ -755,10 +755,6 @@ export class McPopover implements OnInit, OnDestroy {
setTimeout(() => {
position.reapplyLastPosition();
});
} else {
setTimeout(() => {
position.apply();
});
}
}

Expand Down

0 comments on commit e2ae08e

Please sign in to comment.