Skip to content

Commit f382302

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Set columnWidth to min if derived width is less.
1 parent e0655f7 commit f382302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6739,7 +6739,7 @@ export abstract class IgxGridBaseDirective implements GridType,
67396739
protected _derivePossibleWidth() {
67406740
if (!this.columnWidthSetByUser) {
67416741
const possibleWidth = this.getPossibleColumnWidth();
6742-
this._columnWidth = this.width !== null && possibleWidth !== "" ? possibleWidth : this.minColumnWidth + 'px';
6742+
this._columnWidth = this.width !== null && possibleWidth !== "" ? Math.max(parseFloat(possibleWidth), this.minColumnWidth) + 'px' : this.minColumnWidth + 'px';
67436743
}
67446744
this._columns.forEach((column: IgxColumnComponent) => {
67456745
if (this.hasColumnLayouts && parseFloat(this._columnWidth)) {

0 commit comments

Comments
 (0)