Scroller rowHeight

Scroller rowHeight

dietrichdietrich Posts: 3Questions: 0Answers: 0
edited September 2011 in Bug reports
Scroller plugin (bServreSide: true): _fnCalRowHieght doesn't calculate the proper height if a cell row has a line break. eg "text
text". What's the best way to deal with this?
Thanks
--Dietrich

Replies

  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    It depends on which cell has that line in it. All rows in Scroller must have the same height - if they all have that
    in it, then it should work, and if it doesn't can you post a link please?

    Allan
  • dietrichdietrich Posts: 3Questions: 0Answers: 0
    Thank you for your quick response. Unfortunately I can't post the link (user data behind a login), but all the rows are the same height. For example, the following hack works (in 1.0.1.dev in _fnCalcRowHeightu_fnCalc ~ line600):

    this.s.rowHeight = $(nTr).height() * 2;
  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    Thats interesting because I wouldn't generally expect simply adding another row in the cell to multiply the row height linearly (due to padding etc). I'll try to reproduce the issue myself, but until I can, I'm afraid I'll be of limited help!

    Allan
This discussion has been closed.