Skip to content

Commit ca99e95

Browse files
MKirovaMKirova
authored andcommitted
fix(igxGrid): Ceil the scrollLeft in case browser is zoomed and returns a non-whole number value.
1 parent e36abe9 commit ca99e95

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
@@ -22,7 +22,7 @@ export class IgxGridNavigationService {
2222
}
2323

2424
get displayContainerScrollLeft() {
25-
return Math.round(this.grid.parentVirtDir.getHorizontalScroll().scrollLeft);
25+
return Math.ceil(this.grid.parentVirtDir.getHorizontalScroll().scrollLeft);
2626
}
2727

2828
get verticalDisplayContainerElement() {

0 commit comments

Comments
 (0)