Skip to content

Commit 70a91bb

Browse files
committed
Fix issue with columns reverting back to original size after restoring from a saved state
1 parent ed980e6 commit 70a91bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)