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:
Alex Ma
2020-02-27 12:52:35 -08:00
committed by GitHub
parent c05ff67622
commit 2448a109fc
2 changed files with 28 additions and 40 deletions

View File

@@ -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.
* */