Skip to content

Commit 3c31b31

Browse files
authored
Merge pull request #6302 from IgniteUI/ddincheva/columnWidth-8.2
Reset column width to the default or calculated width
2 parents 551ba17 + 9e159ea commit 3c31b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4655,7 +4655,7 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
46554655
cols.forEach((item) => {
46564656
const isWidthInPercent = item.width && typeof item.width === 'string' && item.width.indexOf('%') !== -1;
46574657
if (isWidthInPercent) {
4658-
item.width = MINIMUM_COLUMN_WIDTH + 'px';
4658+
item.width = item.calcWidth || MINIMUM_COLUMN_WIDTH + 'px';
46594659
}
46604660
colSum += parseInt((item.width || item.defaultWidth), 10) || MINIMUM_COLUMN_WIDTH;
46614661
});

0 commit comments

Comments
 (0)