Skip to content

Commit 42358f4

Browse files
fix(*): adjust header scroll position when focused el i scrolled in view #13547 (#13601)
Co-authored-by: Hristo <[email protected]>
1 parent 884b31c commit 42358f4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

projects/igniteui-angular/src/lib/grids/headers/grid-header-row.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div role="rowgroup" class="igx-grid-thead__wrapper" [style.width.px]="width"
1+
<div role="rowgroup" class="igx-grid-thead__wrapper" (scroll)="scroll($event)" [style.width.px]="width"
22
[class.igx-grid__tr--mrl]="hasMRL">
33

44
<!-- Column headers area -->

projects/igniteui-angular/src/lib/grids/headers/grid-header-row.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,13 @@ export class IgxGridHeaderRowComponent implements DoCheck {
204204
this.cdr.markForCheck();
205205
}
206206

207+
/**
208+
* @hidden @internal
209+
*/
210+
public scroll(event: Event) {
211+
this.grid.preventHeaderScroll(event);
212+
}
213+
207214
public headerRowSelection(event: MouseEvent) {
208215
if (!this.grid.isMultiRowSelectionEnabled) {
209216
return;

0 commit comments

Comments
 (0)