Skip to content
Prev Previous commit
Next Next commit
Update ui-grid-column-resizer.js
Fix for undefined coldef being thrown on resize of pinned column
  • Loading branch information
Jameel99 committed Sep 21, 2020
commit ead22e37d394f8ec91f55fa3feb0cf67239d2362
3 changes: 3 additions & 0 deletions packages/resize-columns/src/js/ui-grid-column-resizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@
if (position === 'left') {
// Get the column to the left of this one
var colIndex = renderContainer.visibleColumnCache.indexOf(col);
if (colIndex === 0) {
return renderContainer.visibleColumnCache[0];
}
return renderContainer.visibleColumnCache[colIndex - 1 * rtlMultiplier];
} else {
return col;
Expand Down