mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 17:22:25 -05:00
Fix for double clicking column handle in results table where the column width would not update correctly when the longest row item is the top item in the viewPort (#1504)
This commit is contained in:
committed by
Anthony Dresser
parent
0414ab6e6a
commit
f2df9f3917
@@ -67,7 +67,7 @@ export class AutoColumnSize<T> implements Slick.Plugin<T> {
|
||||
let rowEl = this.createRow(columnDef);
|
||||
let data = this._grid.getData();
|
||||
let viewPort = this._grid.getViewport();
|
||||
let start = Math.max(0, viewPort.top + 1);
|
||||
let start = Math.max(0, viewPort.top);
|
||||
let end = Math.min(data.getLength(), viewPort.bottom);
|
||||
for (let i = start; i < end; i++) {
|
||||
texts.push(data.getItem(i)[columnDef.field]);
|
||||
|
||||
Reference in New Issue
Block a user