resize when window resized (#1335)

This commit is contained in:
Aditya Bist
2018-05-02 17:02:24 -07:00
committed by GitHub
parent 6d243e0ac8
commit 96ecf79d32
2 changed files with 6 additions and 6 deletions

View File

@@ -37,10 +37,6 @@ jobhistory-component {
display: block;
}
#jobsDiv .jobview-grid > .monaco-table > div[class^="slickgrid_"] {
overflow: scroll !important;
}
.vs-dark #jobsDiv .slick-header-column {
background: #333333 !important;
}

View File

@@ -133,7 +133,8 @@ export class JobsViewComponent implements AfterContentChecked {
syncColumnCellResize: true,
enableColumnReorder: false,
rowHeight: 45,
enableCellNavigation: true
enableCellNavigation: true,
forceFitColumns: true
};
this.dataView = new Slick.Data.DataView({ inlineFilters: false });
@@ -225,6 +226,9 @@ export class JobsViewComponent implements AfterContentChecked {
});
this._showProgressWheel = false;
this._cd.detectChanges();
$(window).resize(() => {
this._table.resizeCanvas();
});
this.loadJobHistories();
}