Skip to content

Commit

Permalink
Fix zero delta on double click resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Solovyov authored and mportuga committed Nov 11, 2017
1 parent f16cdb0 commit 8dd0359
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/features/resize-columns/js/ui-grid-column-resizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8dd0359

Please sign in to comment.