From fcb0abfde18f980375d09cfd5b4bb4aadc4deaf0 Mon Sep 17 00:00:00 2001 From: Mariusz Jurowicz Date: Tue, 17 Jul 2018 21:17:49 +0200 Subject: [PATCH] #7686 remove throttling from TableDisplay fitVieport method (#7695) * #7686 remove throttling from TableDisplay fitVieport method * #7686 remove unused variable --- js/notebook/src/tableDisplay/dataGrid/DataGridResize.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/notebook/src/tableDisplay/dataGrid/DataGridResize.ts b/js/notebook/src/tableDisplay/dataGrid/DataGridResize.ts index 5eecda46ae..df39112562 100644 --- a/js/notebook/src/tableDisplay/dataGrid/DataGridResize.ts +++ b/js/notebook/src/tableDisplay/dataGrid/DataGridResize.ts @@ -28,7 +28,6 @@ import {DataGridHelpers} from "./dataGridHelpers"; import {selectColumnWidth} from "./column/selectors"; import getStringSize = DataGridHelpers.getStringSize; import {ALL_TYPES} from "./dataTypes"; -import throttle = DataGridHelpers.throttle; const DEFAULT_RESIZE_SECTION_SIZE_IN_PX = 6; const DEFAULT_ROW_PADDING = 4; @@ -51,7 +50,7 @@ export class DataGridResize { this.handleMouseMove = this.handleMouseMove.bind(this); this.handleMouseUp = this.handleMouseUp.bind(this); this.fillEmptySpaceResizeFn = this.fillEmptySpaceResizeFn.bind(this); - this.fitVieport = throttle(this.fitVieport, 100, this); + this.fitVieport = this.fitVieport.bind(this); this.installMessageHook(); }