Problems with scrolling to row

Problems with scrolling to row

billdacatbilldacat Posts: 6Questions: 0Answers: 0
edited September 2011 in General
The scrolling happens, just not to the right row. I'm passing the correct row #, and all my rows are the same height.. but the further down in the table the record is, the more 'off' the scrolling seems to be.

[code]
var oTable = $('#players').dataTable({
"bAutoWidth": true,
"bProcessing": true,
"bJQueryUI": true,
"iDisplayLength": 25,
"bPaginate": false,
"sScrollY": '200px',
"sDom": "frtiS",
"bDeferRender": true,
"aoColumns": [
null,
{ bVisible: false },
null,
null,
null
]
});

$("a.pos-sort").click(function() {
var char = $(this).attr('title');

if ((char == 'Forward') || (char == 'Defense') || (char == 'Goalie')) {
oTable.fnFilter('' + char + '');
} else {
var num = fnGetSelected(oTable, char);
// alert(oTable.oScroller.fnRowToPixels(num));
oTable.oScroller.fnScrollToRow(num);
}
});

function fnGetSelected( oTable, pid)
{
var aReturn = new Array();
var aTrs = oTable.fnGetNodes();

for ( var i=0; i
This discussion has been closed.