Grid.decreaseColumnWidth: fix scroll left bug
This commit is contained in:
@@ -189,7 +189,8 @@ class Grid {
|
||||
const shrinkLeft = leftInvisibleWidth < rightInvisibleWidth;
|
||||
const widthDelta = (shrinkLeft ? leftInvisibleWidth : rightInvisibleWidth);
|
||||
if (shrinkLeft) {
|
||||
this.container.adjustScroll(-widthDelta, false);
|
||||
const maxDelta = column.getWidth() - column.getMinWidth();
|
||||
this.container.adjustScroll(-Math.min(widthDelta, maxDelta), false);
|
||||
}
|
||||
column.adjustWidth(-widthDelta, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user