File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
projects/igniteui-angular/src/lib/grids/filtering/excel-style Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,26 @@ export class IgxExcelStyleColumnMovingComponent {
4848 public onMoveButtonClicked ( moveDirection ) {
4949 let targetColumn ;
5050 if ( this . column . pinned ) {
51- if ( this . column . isLastPinned && moveDirection === 1 ) {
51+ if ( this . column . isLastPinned && moveDirection === 1 && this . grid . isPinningToStart ) {
5252 targetColumn = this . grid . unpinnedColumns [ 0 ] ;
5353 moveDirection = 0 ;
54+ } else if ( this . column . isFirstPinned && moveDirection === 0 && ! this . grid . isPinningToStart ) {
55+ targetColumn = this . grid . unpinnedColumns [ this . grid . unpinnedColumns . length - 1 ] ;
56+ moveDirection = 1 ;
5457 } else {
5558 targetColumn = this . findColumn ( moveDirection , this . grid . pinnedColumns ) ;
5659 }
57- } else if ( this . grid . unpinnedColumns . indexOf ( this . column ) === 0 && moveDirection === 0 ) {
60+ } else if ( this . grid . unpinnedColumns . indexOf ( this . column ) === 0 && moveDirection === 0 &&
61+ this . grid . isPinningToStart ) {
5862 targetColumn = this . grid . pinnedColumns [ this . grid . pinnedColumns . length - 1 ] ;
5963 if ( targetColumn . parent ) {
6064 targetColumn = targetColumn . topLevelParent ;
6165 }
6266 moveDirection = 1 ;
67+ } else if ( this . grid . unpinnedColumns . indexOf ( this . column ) === this . grid . unpinnedColumns . length - 1 &&
68+ moveDirection === 1 && ! this . grid . isPinningToStart ) {
69+ targetColumn = this . grid . pinnedColumns [ 0 ] ;
70+ moveDirection = 0 ;
6371 } else {
6472 targetColumn = this . findColumn ( moveDirection , this . grid . unpinnedColumns ) ;
6573 }
You can’t perform that action at this time.
0 commit comments