历史数据定位功能重置定位数组修改

This commit is contained in:
zhouyuejun
2019-02-19 10:28:32 +08:00
parent f947b8451c
commit a5263a18fe
4 changed files with 27 additions and 2 deletions
+5
View File
@@ -295,6 +295,11 @@ export class MainComponent implements OnInit {
$(".table-body tbody>tr").eq(0).find('td').each((index, element) => {
$(".table-head table thead tr").eq(0).find('th').eq(index).attr('width', $(element).innerWidth() + 'px');
})
if (this.tableBody.nativeElement.scrollHeight <= (this.tableBody.nativeElement.innerHeight || this.tableBody.nativeElement.clientHeight)) {
this.tableHead.nativeElement.style.overflowY = 'auto';
} else {
this.tableHead.nativeElement.style.overflowY = 'scroll';
}
}
return true;
}