thead and tbody not in one line at the x- and y-axis

thead and tbody not in one line at the x- and y-axis

kinskekinske Posts: 5Questions: 0Answers: 0
edited October 2013 in DataTables 1.9
Hi,

I'm having a x- and y-axis scroll and fixed columns on the left side. My problem is the position of the thead to the tbody and the position of the rows. The columns and rows are not displayed exactly in one line, they are a little bit displaced.
See my example here: http://jsfiddle.net/n74XN/2/ (fixed columns are working sometimes and sometimes not in the jsfiddle example, i think it's because of the result window)
The data for the table is loaded dynamically by php (not in the test case). Here you can see a picture of the real application: http://www.picamatic.com/view/9721451_DataTable/
I use this plugin for visualisation with bootstrap: https://github.com/DataTables/Plugins/tree/master/integration/bootstrap/3
and the FixedColumns Plugin.

How do i get them in one line?

Replies

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    Using the latest FixedColumns and latest DataTables code, it is much closer: http://jsfiddle.net/n74XN/6/ - but still not quite bob on. I'll need to look into this further.

    Allan
  • kinskekinske Posts: 5Questions: 0Answers: 0
    Thank you for your quick answer Allan!
    Unfortunately the scrolling speed of this version is very slow and there is a grey thing on the upper left side but it looks much better.
  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    Grey thing? I'm not seeing that I'm afraid. What browser are you using?

    Allan
  • kinskekinske Posts: 5Questions: 0Answers: 0
    Firefox 24.0 (on Windows XP). I made a screenshot: http://s7.directupload.net/file/d/3417/gcht4rpx_png.htm

    It's not happening in Chrome 30.0.1599.69 m...

    Is there any possibility to increase the scroll speed?
  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    That is extremely odd - it looks like a scrollbar - but it really shouldn't be there. I can't think they it would! I'm going to have to look into that further, but I'm a bit tied up with other work at the moment. I'll come back to this as soon as I can.

    > Is there any possibility to increase the scroll speed?

    Its native scroll speed.

    Allan
  • kinskekinske Posts: 5Questions: 0Answers: 0
    edited October 2013
    Thank you for looking up!

    [quote] Is there any possibility to increase the scroll speed?
    Its native scroll speed. [/quote]

    That's kind of weird because it's very slow and the older version of DataTables does a normal scrollspeed.
  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    Only in Firefox? Or chrome as well?

    Allan
  • kinskekinske Posts: 5Questions: 0Answers: 0
    That's really kind of weird, only in Firefox.
This discussion has been closed.