File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments