@@ -968,8 +968,9 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
968968 */
969969 public get minWidthPx ( ) {
970970 const gridAvailableSize = this . grid . calcWidth ;
971- const isPercentageWidth = this . minWidth && typeof this . minWidth === 'string' && this . minWidth . indexOf ( '%' ) !== - 1 ;
972- return isPercentageWidth ? parseFloat ( this . minWidth ) / 100 * gridAvailableSize : parseFloat ( this . minWidth ) ;
971+ const minWidth = this . minWidth || this . defaultMinWidth ;
972+ const isPercentageWidth = minWidth && typeof minWidth === 'string' && minWidth . indexOf ( '%' ) !== - 1 ;
973+ return isPercentageWidth ? parseFloat ( minWidth ) / 100 * gridAvailableSize : parseFloat ( minWidth ) ;
973974 }
974975
975976 /**
@@ -986,8 +987,9 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
986987 */
987988 public get minWidthPercent ( ) {
988989 const gridAvailableSize = this . grid . calcWidth ;
989- const isPercentageWidth = this . minWidth && typeof this . minWidth === 'string' && this . minWidth . indexOf ( '%' ) !== - 1 ;
990- return isPercentageWidth ? parseFloat ( this . minWidth ) : parseFloat ( this . minWidth ) / gridAvailableSize * 100 ;
990+ const minWidth = this . minWidth || this . defaultMinWidth ;
991+ const isPercentageWidth = minWidth && typeof minWidth === 'string' && minWidth . indexOf ( '%' ) !== - 1 ;
992+ return isPercentageWidth ? parseFloat ( minWidth ) : parseFloat ( minWidth ) / gridAvailableSize * 100 ;
991993 }
992994
993995
@@ -1012,11 +1014,10 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
10121014 return ;
10131015 }
10141016 this . _defaultMinWidth = value ;
1015- this . minWidthSetByUser = true ;
10161017 this . grid . notifyChanges ( true ) ;
10171018 }
10181019 public get minWidth ( ) : string {
1019- return ! this . _defaultMinWidth ? this . defaultMinWidth : this . _defaultMinWidth ;
1020+ return this . _defaultMinWidth ;
10201021 }
10211022
10221023 /** @hidden @internal **/
@@ -1786,10 +1787,6 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
17861787 * @hidden
17871788 */
17881789 public widthConstrained = false ;
1789- /**
1790- * @hidden
1791- */
1792- public minWidthSetByUser = false ;
17931790
17941791 /**
17951792 * @hidden
@@ -2653,7 +2650,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
26532650 this . _calcWidth = this . getConstrainedSizePx ( currentCalcWidth ) ;
26542651 } else {
26552652 let possibleColumnWidth = '' ;
2656- if ( ! this . widthSetByUser && this . minWidthSetByUser && this . userSetMinWidthPx < this . grid . minColumnWidth ) {
2653+ if ( ! this . widthSetByUser && this . userSetMinWidthPx && this . userSetMinWidthPx < this . grid . minColumnWidth ) {
26572654 possibleColumnWidth = this . defaultWidth = this . grid . getPossibleColumnWidth ( null , this . userSetMinWidthPx ) ;
26582655 } else {
26592656 possibleColumnWidth = this . width ;
0 commit comments