File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1919,14 +1919,14 @@ export class IgxColumnComponent implements AfterContentInit {
1919
1919
const colWidth = this . width ;
1920
1920
const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth . indexOf ( '%' ) !== - 1 ;
1921
1921
if ( isPercentageWidth ) {
1922
- this . _calcWidth = parseInt ( colWidth , 10 ) / 100 * grid . calcWidth ;
1922
+ this . _calcWidth = parseFloat ( colWidth ) / 100 * grid . calcWidth ;
1923
1923
} else if ( ! colWidth ) {
1924
1924
// no width
1925
1925
this . _calcWidth = this . defaultWidth || grid . getPossibleColumnWidth ( ) ;
1926
1926
} else {
1927
1927
this . _calcWidth = this . width ;
1928
1928
}
1929
- this . calcPixelWidth = parseInt ( this . _calcWidth , 10 ) ;
1929
+ this . calcPixelWidth = parseFloat ( this . _calcWidth ) ;
1930
1930
}
1931
1931
1932
1932
/**
Original file line number Diff line number Diff line change @@ -3552,7 +3552,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
3552
3552
if ( this . hasColumnLayouts ) {
3553
3553
return '' ;
3554
3554
}
3555
- const colWidth = parseInt ( column . calcWidth , 10 ) ;
3555
+ const colWidth = parseFloat ( column . calcWidth ) ;
3556
3556
const minWidth = this . defaultHeaderGroupMinWidth ;
3557
3557
3558
3558
if ( colWidth < minWidth ) {
You can’t perform that action at this time.
0 commit comments