Skip to content

Commit 7f3206d

Browse files
MKirovaMayaKirova
authored andcommitted
fix(igxGrid): Ceil the scrollLeft in case browser is zoomed and returns a non-whole number value.
1 parent 5756c25 commit 7f3206d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid-navigation.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class IgxGridNavigationService {
2121
}
2222

2323
get displayContainerScrollLeft() {
24-
return Math.round(this.grid.parentVirtDir.getHorizontalScroll().scrollLeft);
24+
return Math.ceil(this.grid.parentVirtDir.getHorizontalScroll().scrollLeft);
2525
}
2626

2727
get verticalDisplayContainerElement() {

0 commit comments

Comments
 (0)