Ajustement de la pop-in d'infos sur les sauts

This commit is contained in:
Sébastien André
2021-04-13 17:55:54 +02:00
parent b0a4db5a6c
commit 8b682f7be2
3 changed files with 63 additions and 35 deletions

View File

@@ -25,14 +25,4 @@ table {
flex-direction: column;
align-items: initial;
padding-top: 25px;
}
.showPopin {
display: inline-block !important;
position: relative;
/* right: -25px;
top: -25px; */
border: 1px solid black;
min-width: 125px;
z-index: 1000;
}

View File

@@ -26,14 +26,11 @@ export class ListOfJumpsComponent implements OnInit {
];
public dataSourceTable;
public resultsLength = 0;
private showPopinForItemId = -1;
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
constructor(
private serviceApi: JumpService,
private serviceComm: ServiceComm,
public dialog: MatDialog
) { }
constructor(private serviceApi: JumpService,
private serviceComm: ServiceComm,
public dialog: MatDialog) { }
ngOnInit() {
this.serviceComm.UpdatedComponentTitle('List of jumps');
@@ -52,27 +49,13 @@ export class ListOfJumpsComponent implements OnInit {
});
}
showPopin(event, item) {
this.showPopinForItemId = item.id;
}
hidePopin(event, item) {
this.showPopinForItemId = -1;
}
calculateClasses(item) {
return {
'showPopin': this.showPopinForItemId != -1 && item.id === this.showPopinForItemId,
};
}
openDialog(item: JumpResp) {
this.dialog.open(JumpInfosComponent, {
data: item,
position: {
top: '0px',
left: '0px'
}
data: item //,
// position: {
// top: '0px',
// left: '0px'
// }
});
}
}