Skip to content

Commit b55bc7c

Browse files
committed
Merge branch 'master' into sortpriority
2 parents 746518e + cecb7eb commit b55bc7c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/grunt/plugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ module.exports = function(grunt) {
331331
fs.writeFileSync(bowerJsonFile, JSON.stringify(json, null, 2));
332332

333333
// Add version for package.json
334-
pkg.version = currentTag;
334+
json.version = currentTag;
335335

336-
fs.writeFileSync(pkgJsonFile, JSON.stringify(pkg, null, 2));
336+
fs.writeFileSync(pkgJsonFile, JSON.stringify(json, null, 2));
337337
});
338338

339339
// Publish release to NPM

src/features/saveState/js/saveState.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,9 @@
544544
grid.api.core.raise.columnVisibilityChanged(currentCol);
545545
}
546546

547-
if ( grid.options.saveWidths ){
547+
if ( grid.options.saveWidths && currentCol.width !== columnState.width){
548548
currentCol.width = columnState.width;
549+
currentCol.hasCustomWidth = true;
549550
}
550551

551552
if ( grid.options.saveSort &&

0 commit comments

Comments
 (0)