File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
projects/igniteui-angular/src/lib/grids/columns Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,6 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After
163163 if ( this . headTemplate && this . headTemplate . length ) {
164164 this . _headerTemplate = this . headTemplate . toArray ( ) [ 0 ] . template ;
165165 }
166- // Delete the line below once we update to Angular 9
167- this . children . reset ( this . children . toArray ( ) . slice ( 1 ) ) ;
168166 this . children . forEach ( child => {
169167 child . parent = this ;
170168 } ) ;
Original file line number Diff line number Diff line change @@ -312,7 +312,12 @@ export class IgxColumnComponent implements AfterContentInit {
312312 this . _calcWidth = null ;
313313 this . calcPixelWidth = NaN ;
314314 this . widthSetByUser = true ;
315- this . _width = typeof ( value ) === 'number' ? value + 'px' : value ;
315+ // width could be passed as number from the template
316+ // host bindings are not px affixed so we need to ensure we affix simple number strings
317+ if ( typeof ( value ) === 'number' || value . match ( / ^ [ 0 - 9 ] * $ / ) ) {
318+ value = value + 'px' ;
319+ }
320+ this . _width = value ;
316321 if ( this . grid ) {
317322 this . cacheCalcWidth ( ) ;
318323 }
You can’t perform that action at this time.
0 commit comments