Skip to content

Commit b40090d

Browse files
authored
Merge branch '15.1.x' into iminchev/fix-header-autosize-15.1.x
2 parents 623b134 + b74eb5a commit b40090d

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
@@ -196,6 +196,13 @@ export class IgxGridHeaderRowComponent implements DoCheck {
196196
this.cdr.markForCheck();
197197
}
198198

199+
/**
200+
* @hidden @internal
201+
*/
202+
public scroll(event: Event) {
203+
this.grid.preventHeaderScroll(event);
204+
}
205+
199206
public headerRowSelection(event: MouseEvent) {
200207
if (!this.grid.isMultiRowSelectionEnabled) {
201208
return;

0 commit comments

Comments
 (0)