mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 01:25:39 -05:00
Fix for table resizing (#9117)
* some optimization * check for table * fix table resizing * Fix for sash crash * Removed space * small optimization * small change in message * small change * changed wording * removed timeout for onResize * Removed onGridRendered * fix isCellOnScreen * small spacing fixes * removed timeout in gridParentComponent * fix for indexing * reduced instances of "self" * minor fixes for self and this
This commit is contained in:
@@ -499,14 +499,15 @@ export abstract class GridParentComponent extends Disposable {
|
||||
protected abstract tryHandleKeyEvent(e: StandardKeyboardEvent): boolean;
|
||||
|
||||
resizeGrids(): void {
|
||||
const self = this;
|
||||
setTimeout(() => {
|
||||
for (let grid of self.renderedDataSets) {
|
||||
grid.resized.fire();
|
||||
}
|
||||
this.onResize();
|
||||
});
|
||||
}
|
||||
|
||||
protected onResize() {
|
||||
this.table?.resizeCanvas();
|
||||
}
|
||||
|
||||
/**
|
||||
* used to render the native element into the container.
|
||||
* */
|
||||
|
||||
Reference in New Issue
Block a user