@@ -944,6 +944,15 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
944944 return isPercentageWidth ? parseFloat ( this . minWidth ) / 100 * gridAvailableSize : parseFloat ( this . minWidth ) ;
945945 }
946946
947+ /**
948+ * @hidden
949+ */
950+ public get userSetMinWidthPx ( ) {
951+ const gridAvailableSize = this . grid . calcWidth ;
952+ const isPercentageWidth = this . _defaultMinWidth && typeof this . _defaultMinWidth === 'string' && this . _defaultMinWidth . indexOf ( '%' ) !== - 1 ;
953+ return isPercentageWidth ? parseFloat ( this . _defaultMinWidth ) / 100 * gridAvailableSize : parseFloat ( this . _defaultMinWidth ) ;
954+ }
955+
947956 /**
948957 * @hidden
949958 */
@@ -1822,7 +1831,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
18221831 /**
18231832 * @hidden
18241833 */
1825- protected _maxWidth = '' ;
1834+ protected _maxWidth ;
18261835 /**
18271836 * @hidden
18281837 */
@@ -2579,9 +2588,9 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
25792588 if ( this . maxWidth && newSize > this . maxWidthPx ) {
25802589 this . widthConstrained = true ;
25812590 return this . maxWidthPx ;
2582- } else if ( this . minWidth && newSize < this . minWidthPx ) {
2591+ } else if ( this . minWidth && newSize < this . userSetMinWidthPx ) {
25832592 this . widthConstrained = true ;
2584- return this . minWidthPx ;
2593+ return this . userSetMinWidthPx ;
25852594 } else {
25862595 this . widthConstrained = false ;
25872596 return newSize ;
@@ -2597,7 +2606,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
25972606 const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth . indexOf ( '%' ) !== - 1 ;
25982607 const isAutoWidth = colWidth && typeof colWidth === 'string' && colWidth === 'fit-content' ;
25992608 if ( isPercentageWidth && this . grid . isColumnWidthSum ) {
2600- this . _calcWidth = this . minWidthPx ?? this . grid . minColumnWidth ;
2609+ this . _calcWidth = this . userSetMinWidthPx ? this . userSetMinWidthPx : this . grid . minColumnWidth ;
26012610 } else if ( isPercentageWidth ) {
26022611 const currentCalcWidth = parseFloat ( colWidth ) / 100 * this . grid . calcWidth ;
26032612 this . _calcWidth = this . grid . calcWidth ? this . getConstrainedSizePx ( currentCalcWidth ) : 0 ;
0 commit comments