mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fixed resizing in agent because of slickgrid change (#3786)
This commit is contained in:
@@ -368,7 +368,7 @@ export class JobsViewComponent extends JobManagementView implements OnInit, OnDe
|
|||||||
|
|
||||||
const self = this;
|
const self = this;
|
||||||
this._table.grid.onColumnsResized.subscribe((e, data: any) => {
|
this._table.grid.onColumnsResized.subscribe((e, data: any) => {
|
||||||
let nameWidth: number = data.grid.getColumnWidths()[1];
|
let nameWidth: number = data.grid.getColumns()[1].width;
|
||||||
// adjust job name when resized
|
// adjust job name when resized
|
||||||
$('#jobsDiv .jobview-grid .slick-cell.l1.r1 .jobview-jobnametext').css('width', `${nameWidth - 10}px`);
|
$('#jobsDiv .jobview-grid .slick-cell.l1.r1 .jobview-jobnametext').css('width', `${nameWidth - 10}px`);
|
||||||
// adjust error message when resized
|
// adjust error message when resized
|
||||||
@@ -377,8 +377,10 @@ export class JobsViewComponent extends JobManagementView implements OnInit, OnDe
|
|||||||
// generate job charts again
|
// generate job charts again
|
||||||
self.jobs.forEach(job => {
|
self.jobs.forEach(job => {
|
||||||
let jobHistories = self._jobCacheObject.getJobHistory(job.jobId);
|
let jobHistories = self._jobCacheObject.getJobHistory(job.jobId);
|
||||||
let previousRuns = jobHistories.slice(jobHistories.length - 5, jobHistories.length);
|
if (jobHistories) {
|
||||||
self.createJobChart(job.jobId, previousRuns);
|
let previousRuns = jobHistories.slice(jobHistories.length - 5, jobHistories.length);
|
||||||
|
self.createJobChart(job.jobId, previousRuns);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user