Skip to content

Commit cecb7eb

Browse files
committed
Merge pull request angular-ui#4717 from IQMS/master
fix(core): Fix columns reverting back to original size after restoring
2 parents 4ed0f2d + 4cfd60c commit cecb7eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/saveState/js/saveState.js

+2-1
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)