mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Fix resource viewer grid resizing (#13197)
* Fix resource viewer grid resizing * keep height
This commit is contained in:
@@ -49,8 +49,7 @@ export class ResourceViewerTable extends Disposable {
|
||||
this._dataView.sort(args);
|
||||
}
|
||||
}, {
|
||||
dataItemColumnValueExtractor: dataGridColumnValueExtractor,
|
||||
forceFitColumns: true
|
||||
dataItemColumnValueExtractor: dataGridColumnValueExtractor
|
||||
}));
|
||||
|
||||
this._resourceViewerTable.setSelectionModel(new RowSelectionModel());
|
||||
@@ -95,6 +94,7 @@ export class ResourceViewerTable extends Disposable {
|
||||
|
||||
public set columns(columns: Slick.Column<Slick.SlickData>[]) {
|
||||
this._resourceViewerTable.columns = columns;
|
||||
this._resourceViewerTable.autosizeColumns();
|
||||
}
|
||||
|
||||
public set loading(isLoading: boolean) {
|
||||
@@ -113,6 +113,11 @@ export class ResourceViewerTable extends Disposable {
|
||||
this._resourceViewerTable.unregisterPlugin(plugin);
|
||||
}
|
||||
|
||||
public layout(): void {
|
||||
this._resourceViewerTable.resizeCanvas();
|
||||
this._resourceViewerTable.autosizeColumns();
|
||||
}
|
||||
|
||||
public focus(): void {
|
||||
this._resourceViewerTable.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user