Scroller rowHeight option ignored

Scroller rowHeight option ignored

deathwingdeathwing Posts: 4Questions: 0Answers: 0
edited October 2011 in Bug reports
Hi Allan,

I was just trying the Scroller plugin when I noticed that any change to the rowHeight option gets ignored.

Stepping through the code looking for an explanation I came across a pretty obvious one in _fnConstruct():
[code]
/* Initial size calculations */
if ( this.s.rowHeight != 'auto' )
{
this.s.rowHeight = false;
}
this.fnMeasure();
[/code]

Any given rowHeight is ignored and replaced by false, which also causes the following calculations in fnMeasure to fail, because it's trying to divide by that rowHeight.

Do these lines have any reason to exist which I might not see? I just removed them and my problems are solved.

I used version 1.0.1.dev with these options for the Scroller:
[code]
table.dataTable({
"sScrollY": "300px",
"oScroller": {
"autoHeight": false,
"rowHeight": 26,
"trace": true
}
});
[/code]

Oh, I just noticed that the mentioned lines changed from 1.0.0 to 1.0.1.dev and the whole fnMeasure method is new..
Well.. something is definitely wrong here .. :)
This discussion has been closed.