Skip to content

Commit 30a5d96

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Check in case size is auto and needs fallback for virtualization.
1 parent 3831426 commit 30a5d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/grids/core/src/columns/column.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,14 +2672,14 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
26722672
* @hidden
26732673
* @internal
26742674
*/
2675-
public getConstrainedSizePx(newSize){
2675+
public getConstrainedSizePx(newSize) {
26762676
if (this.maxWidth && newSize >= this.maxWidthPx) {
26772677
this.widthConstrained = true;
26782678
return this.maxWidthPx;
26792679
} else if (this.minWidth && newSize <= this.userSetMinWidthPx) {
26802680
this.widthConstrained = true;
26812681
return this.userSetMinWidthPx;
2682-
} else if (!this.minWidth && !this.widthSetByUser && newSize <= this.grid.minColumnWidth) {
2682+
} else if (!this.minWidth && (!this.widthSetByUser || this.width === 'fit-content') && newSize <= this.grid.minColumnWidth) {
26832683
return this.grid.minColumnWidth;
26842684
} else {
26852685
this.widthConstrained = false;

0 commit comments

Comments
 (0)