Skip to content

Commit 5bba4a3

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Add handling for all hidden.
1 parent f382302 commit 5bba4a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6739,7 +6739,14 @@ 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 !== "" ? Math.max(parseFloat(possibleWidth), this.minColumnWidth) + 'px' : this.minColumnWidth + 'px';
6742+
if (possibleWidth === "0px") {
6743+
// all columns - hidden
6744+
this._columnWidth = possibleWidth;
6745+
} else if (this.width !== null && possibleWidth !== "") {
6746+
this._columnWidth = Math.max(parseFloat(possibleWidth), this.minColumnWidth) + 'px'
6747+
} else {
6748+
this._columnWidth = this.minColumnWidth + 'px';
6749+
}
67436750
}
67446751
this._columns.forEach((column: IgxColumnComponent) => {
67456752
if (this.hasColumnLayouts && parseFloat(this._columnWidth)) {

0 commit comments

Comments
 (0)