This repository was archived by the owner on Jun 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
src/app/modules/angular-slickgrid/extensions Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -221,15 +221,6 @@ export class HeaderMenuExtension implements Extension {
221221 if ( this . sharedService . grid && this . sharedService . grid . getColumns && this . sharedService . grid . setColumns && this . sharedService . grid . getColumnIndex ) {
222222 const columnIndex = this . sharedService . grid . getColumnIndex ( column . id ) ;
223223 const currentColumns = this . sharedService . grid . getColumns ( ) as Column [ ] ;
224-
225- // if we're using frozen columns, we need to readjust pinning when the new hidden column is on the left pinning container
226- // we need to do this because SlickGrid freezes by index and has no knowledge of the columns themselves
227- const frozenColumnIndex = this . sharedService . gridOptions . frozenColumn || - 1 ;
228- if ( frozenColumnIndex >= 0 && frozenColumnIndex >= columnIndex ) {
229- this . sharedService . grid . setOptions ( { frozenColumn : frozenColumnIndex - 1 } ) ;
230- }
231-
232- // then proceed with hiding the column in SlickGrid & trigger an event when done
233224 const visibleColumns = arrayRemoveItemByIndex ( currentColumns , columnIndex ) ;
234225 this . sharedService . visibleColumns = visibleColumns ;
235226 this . sharedService . grid . setColumns ( visibleColumns ) ;
You can’t perform that action at this time.
0 commit comments