Skip to content

Commit 8d08525

Browse files
Jameel99mportuga
authored andcommitted
Fix: undefined coldef JS error being thrown on resize of pinned ui grid column
Contains a fix for java script column definintion error thrown on resize of pinned ui grid column.
1 parent 85af008 commit 8d08525

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"commit": "git-cz",
1515
"e2e": "grunt test:ci-e2e",
1616
"init": "validate-commit-msg",
17-
"lint": "grunt newer:jshint",
17+
"lint": "grunt newer:jshint",
18+
"postinstall": "bower install",
1819
"release": "lerna publish from-package",
1920
"start": "grunt dev --fast",
2021
"test": "grunt test",

packages/resize-columns/src/js/ui-grid-column-resizer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@
119119
if (position === 'left') {
120120
// Get the column to the left of this one
121121
var colIndex = renderContainer.visibleColumnCache.indexOf(col);
122-
if (colIndex === 0) {
123-
//set visibleColumnCache to 0 if colIndex is 0
122+
if (colIndex === 0) {
124123
return renderContainer.visibleColumnCache[0];
125124
}
126125
return renderContainer.visibleColumnCache[colIndex - 1 * rtlMultiplier];

0 commit comments

Comments
 (0)