mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
remove table setActive (#10256)
* remove setActive method * another place
This commit is contained in:
@@ -230,10 +230,6 @@ export class Table<T extends Slick.SlickData> extends Widget implements IDisposa
|
|||||||
this._grid.setActiveCell(row, cell);
|
this._grid.setActiveCell(row, cell);
|
||||||
}
|
}
|
||||||
|
|
||||||
setActive(): void {
|
|
||||||
this._grid.setActiveCell(0, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
get activeCell(): Slick.Cell | null {
|
get activeCell(): Slick.Cell | null {
|
||||||
return this._grid.getActiveCell();
|
return this._grid.getActiveCell();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ export class EditDataGridPanel extends GridParentComponent {
|
|||||||
|
|
||||||
private setActive() {
|
private setActive() {
|
||||||
if (this.firstRender && this.table) {
|
if (this.firstRender && this.table) {
|
||||||
this.table.setActive();
|
this.table.setActiveCell(0, 1);
|
||||||
this.firstRender = false;
|
this.firstRender = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ export abstract class GridParentComponent extends Disposable {
|
|||||||
return (gridIndex: number) => {
|
return (gridIndex: number) => {
|
||||||
self.activeGrid = gridIndex;
|
self.activeGrid = gridIndex;
|
||||||
let grid = self.table;
|
let grid = self.table;
|
||||||
grid.setActive();
|
grid.setActiveCell(0, 1);
|
||||||
grid.setSelectedRows(true);
|
grid.setSelectedRows(true);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -438,7 +438,7 @@ export abstract class GridParentComponent extends Disposable {
|
|||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
self.resizeGrids();
|
self.resizeGrids();
|
||||||
self.table.setActive();
|
self.table.setActiveCell(0, 1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user