Skip to content

Commit be45dfa

Browse files
authored
Merge branch '15.0.x' into mkirova/fix-12251
2 parents 77c5a3a + bf7466f commit be45dfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ export class IgxHierarchicalGridNavigationService extends IgxGridNavigationServi
276276
const gridTop = this._getMaxTop(this.grid);
277277
const diffTop = rowElem.getBoundingClientRect().bottom -
278278
rowElem.offsetHeight - gridTop;
279-
const isInView = isNext ? diffBottom <= 0 : diffTop >= 0;
279+
// 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;
280281
const calcOffset = isNext ? diffBottom : diffTop;
281282

282283
return { inView: isInView, offset: calcOffset };

0 commit comments

Comments
 (0)