We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b992dc1 + b6d5a98 commit bf7466fCopy full SHA for bf7466f
projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid-navigation.service.ts
@@ -276,7 +276,8 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
276
const gridTop = this._getMaxTop(this.grid);
277
const diffTop = rowElem.getBoundingClientRect().bottom -
278
rowElem.offsetHeight - gridTop;
279
- const isInView = isNext ? diffBottom <= 0 : diffTop >= 0;
+ // Adding Math.Round because Chrome has some inconsistencies when the page is zoomed
280
+ const isInView = isNext ? Math.round(diffBottom) <= 0 : Math.round(diffTop) >= 0;
281
const calcOffset = isNext ? diffBottom : diffTop;
282
283
return { inView: isInView, offset: calcOffset };
0 commit comments