sScrollY using percent values

sScrollY using percent values

FParsonsFParsons Posts: 18Questions: 3Answers: 0
edited September 2012 in General
Well, I have tried searching the forum for an answer to this question, but haven't yet found a conclusive answer.

Should sScrollY using a value of "100%" work? Of course, there is no problem using a fixed value, but the documentation states that "any CSS unit should work". I did come across a workaround where the "sScrollY" value is an expression (which also requires updating on window.resize), but I couldn't get that to work.

I am using 1.9.3, but I have tried this on earlier versions and as far as I can tell it has never worked. My main interest is in having "fixed headers". I know there is the plugin for this, but I have had problems getting this to work correctly in both IE7 and IE8 (there are several threads about this). In my mind, datatables should always have fixed headers (why would you not want that? or at least have that option built-in). Since datatables are constructed out of an actual HTML table, I could understand why this might not be the easiest thing to do, or at least something that might not work on every browser.

Datatables is surely one of the best jQuery plugins around, but I'm puzzled why more people haven't asked about this.

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Currently no - there is no way to use a percentage height for scroll y. It would be nice if it did, and I do plan to try an implement it at some point (patches are welcome :-) ), but I'm afraid that at the moment, only pixel values will actually give height to the container.

    Allan
This discussion has been closed.