mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
resize when window resized (#1335)
This commit is contained in:
@@ -37,10 +37,6 @@ jobhistory-component {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#jobsDiv .jobview-grid > .monaco-table > div[class^="slickgrid_"] {
|
|
||||||
overflow: scroll !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vs-dark #jobsDiv .slick-header-column {
|
.vs-dark #jobsDiv .slick-header-column {
|
||||||
background: #333333 !important;
|
background: #333333 !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export class JobsViewComponent implements AfterContentChecked {
|
|||||||
private _disposables = new Array<vscode.Disposable>();
|
private _disposables = new Array<vscode.Disposable>();
|
||||||
|
|
||||||
private columns: Array<Slick.Column<any>> = [
|
private columns: Array<Slick.Column<any>> = [
|
||||||
{ name: nls.localize('jobColumns.name','Name'), field: 'name', formatter: this.renderName, width: 200, id: 'name' },
|
{ name: nls.localize('jobColumns.name','Name'), field: 'name', formatter: this.renderName, width: 200 , id: 'name' },
|
||||||
{ name: nls.localize('jobColumns.lastRun','Last Run'), field: 'lastRun', minWidth: 150, id: 'lastRun' },
|
{ name: nls.localize('jobColumns.lastRun','Last Run'), field: 'lastRun', minWidth: 150, id: 'lastRun' },
|
||||||
{ name: nls.localize('jobColumns.nextRun','Next Run'), field: 'nextRun', minWidth: 150, id: 'nextRun' },
|
{ name: nls.localize('jobColumns.nextRun','Next Run'), field: 'nextRun', minWidth: 150, id: 'nextRun' },
|
||||||
{ name: nls.localize('jobColumns.enabled','Enabled'), field: 'enabled', minWidth: 70, id: 'enabled' },
|
{ name: nls.localize('jobColumns.enabled','Enabled'), field: 'enabled', minWidth: 70, id: 'enabled' },
|
||||||
@@ -133,7 +133,8 @@ export class JobsViewComponent implements AfterContentChecked {
|
|||||||
syncColumnCellResize: true,
|
syncColumnCellResize: true,
|
||||||
enableColumnReorder: false,
|
enableColumnReorder: false,
|
||||||
rowHeight: 45,
|
rowHeight: 45,
|
||||||
enableCellNavigation: true
|
enableCellNavigation: true,
|
||||||
|
forceFitColumns: true
|
||||||
};
|
};
|
||||||
|
|
||||||
this.dataView = new Slick.Data.DataView({ inlineFilters: false });
|
this.dataView = new Slick.Data.DataView({ inlineFilters: false });
|
||||||
@@ -225,6 +226,9 @@ export class JobsViewComponent implements AfterContentChecked {
|
|||||||
});
|
});
|
||||||
this._showProgressWheel = false;
|
this._showProgressWheel = false;
|
||||||
this._cd.detectChanges();
|
this._cd.detectChanges();
|
||||||
|
$(window).resize(() => {
|
||||||
|
this._table.resizeCanvas();
|
||||||
|
});
|
||||||
this.loadJobHistories();
|
this.loadJobHistories();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user