From 8dd035999054837b2a1f62fb4535542620ca4e59 Mon Sep 17 00:00:00 2001 From: Artyom Solovyov Date: Wed, 18 Oct 2017 16:42:40 +0300 Subject: [PATCH] Fix zero delta on double click resizing --- src/features/resize-columns/js/ui-grid-column-resizer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/resize-columns/js/ui-grid-column-resizer.js b/src/features/resize-columns/js/ui-grid-column-resizer.js index 1c2c27759d..9e9588a7f7 100644 --- a/src/features/resize-columns/js/ui-grid-column-resizer.js +++ b/src/features/resize-columns/js/ui-grid-column-resizer.js @@ -536,13 +536,14 @@ if (width > maxWidth) { maxWidth = width; - xDiff = maxWidth - width; } }); }); // check we're not outside the allowable bounds for this column - col.width = constrainWidth(col, maxWidth); + var newWidth = constrainWidth(col, maxWidth); + xDiff = newWidth - col.drawnWidth; + col.width = newWidth; col.hasCustomWidth = true; refreshCanvas(xDiff);