Skip to content

Commit bff6711

Browse files
committed
chore(*): DS set to 125% the grid doesn't scroll row completely in the view
1 parent 47c59cd commit bff6711

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ export class IgxGridNavigationService {
286286
const rowHeight = this.grid.verticalScrollContainer.getSizeAt(scrollRowIndex);
287287
const containerHeight = this.grid.calcHeight ? Math.ceil(this.grid.calcHeight) : 0;
288288
const endTopOffset = targetRow ? targetRow.offsetTop + rowHeight + this.containerTopOffset : containerHeight + rowHeight;
289+
// this is workaround: endTopOffset - containerHeight > 5 and should be replaced with: containerHeight < endTopOffset
290+
// when the page is zoomed the grid does not scroll the row completely in the view
289291
return !targetRow || targetRow.offsetTop < Math.abs(this.containerTopOffset)
290-
|| containerHeight && containerHeight < endTopOffset;
292+
|| containerHeight && endTopOffset - containerHeight > 5;
291293
}
292294

293295
protected navigateInBody(rowIndex, visibleColIndex, cb: Function = null): void {

0 commit comments

Comments
 (0)