On windows 8
Chrome: scrolling with TABKEY doesn't scroll to make visible line outside tbody viewport correctly
Version 39.0.2171.95 Version 41.0.2257.0 canary (64-bit) Version 41.0.2236.0 (64-bit)
IE 11 Firefox 31.0 is working properly
At the same time, my solution was tested with the latest Chrome and IE11 browsers
// rowObj is javascript <tr> element object rowObj.addEventListener("focus", function( event ) { console.log("focus visible row=" + event.currentTarget.sectionRowIndex); if(event.currentTarget.sectionRowIndex === 0) detObj.scrollTop = 0; //detObj is javascript <td> else if(event.currentTarget.sectionRowIndex > 4) // is the max visible rows in <tbody> detObj.scrollTop = 9999; // will focus on last row in <tbody> }, true);
// If necessary, I can provide javascript code to calculate the number of visible lines in
user3856491
source share