File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
projects/igniteui-angular/src/lib/grids/columns Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,14 @@ export class IgxColumnLayoutComponent extends IgxColumnGroupComponent implements
157157 : [ ] ;
158158 const orderedCols = columns
159159 . filter ( x => ! x . columnGroup && ! x . hidden )
160- . sort ( ( a , b ) => columns . indexOf ( a . parent ) - columns . indexOf ( b . parent ) || a . rowStart - b . rowStart || a . colStart - b . colStart ) ;
160+ . sort ( ( a , b ) => a . rowStart - b . rowStart || columns . indexOf ( a . parent ) - columns . indexOf ( b . parent ) || a . colStart - b . colStart ) ;
161161 this . children . forEach ( child => {
162+ const rs = child . rowStart || 1 ;
162163 let vIndex = 0 ;
163- vIndex = orderedCols . indexOf ( child ) ;
164+ // filter out all cols with larger rowStart
165+ const cols = orderedCols . filter ( c =>
166+ ! c . columnGroup && ( c . rowStart || 1 ) <= rs ) ;
167+ vIndex = cols . indexOf ( child ) ;
164168 this . childrenVisibleIndexes . push ( { column : child , index : vIndex } ) ;
165169 } ) ;
166170 }
You can’t perform that action at this time.
0 commit comments