Skip to content

Commit 3831426

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix hiding integration.
1 parent b20a5b9 commit 3831426

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5617,9 +5617,13 @@ export abstract class IgxGridBaseDirective implements GridType,
56175617
}, 0);
56185618

56195619
// When all columns are hidden, return 0px width
5620-
if (!sumExistingWidths || !columnsToSize) {
5620+
if (!sumExistingWidths && !columnsToSize) {
56215621
return '0px';
56225622
}
5623+
5624+
if (!columnsToSize) {
5625+
return '';
5626+
}
56235627
computedWidth -= this.featureColumnsWidth();
56245628

56255629
const columnWidth = !Number.isFinite(sumExistingWidths) ?
@@ -6735,7 +6739,7 @@ export abstract class IgxGridBaseDirective implements GridType,
67356739
protected _derivePossibleWidth() {
67366740
if (!this.columnWidthSetByUser) {
67376741
const possibleWidth = this.getPossibleColumnWidth();
6738-
this._columnWidth = this.width !== null && possibleWidth !== "0px" ? possibleWidth : this.minColumnWidth + 'px';
6742+
this._columnWidth = this.width !== null && possibleWidth !== "" ? possibleWidth : this.minColumnWidth + 'px';
67396743
}
67406744
this._columns.forEach((column: IgxColumnComponent) => {
67416745
if (this.hasColumnLayouts && parseFloat(this._columnWidth)) {

0 commit comments

Comments
 (0)