• Resolved psims529

    (@psims529)


    Hi Tobias,

    Thanks again for your amazing product. I have a very large table (many columns and rows) so I wanted to fix both the header and the leftmost column. I have the fixed header working, but when I add the code to fix the column (datatables_fixedcolumns=”left”), it makes the fixed header no longer work, but also doesn’t fix the leftmost column. Can you do both of these things on the same table?

    Thanks in advance!

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Those two Extensions will indeed not work together, as they influence the same part of the JS/CSS code on the page.

    However, the FixedHeader Extension itself can also fix the left column. For that, you’ll need to modify the Shortcode parameter, as explained in the lower part of the documentation page at http://tablepress.org/extensions/datatables-fixedheader/ .

    Regards,
    Tobias

    Thread Starter psims529

    (@psims529)

    Tobisa,

    Thanks so much for your help! I’m sorry I missed that extra instruction on the webpage – I swear I looked for it!

    That does work, but it’s creating an extra cell in left column, which means the left column is no longer perfectly aligned ( see here). Is there any way to avoid this?

    Thanks again for all your help and for the fantastic plugin!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m not exactly sure what’s causing this, but it seems that the FixedHeader JS library (which I didn’t develop, but only make available as a TablePress Extension) can not properly determine the height of the cells in the table.
    We might have to force a certain height therefore. Please try adding this to the “Custom CSS”:

    .tablepress-id-2 tbody td,
    .tablepress-id-2 thead th {
      height: 60px !important;
    }

    Regards,
    Tobias

    Thread Starter psims529

    (@psims529)

    Thanks again for your help. Unfortunately this just changed the nature of the problem – not all of the cells in the left column are showing, which appears to have something to do with the header. I have saved the changes, though, so that you can see it.

    Thanks again!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    hmm, Okay… It looks like there something going on in the load order. If I resize the browser window, everything fits suddenly, because the JS re-calculates the heights that it needs.

    Unfortunately, I have no clue how to fix this then 🙁 Sorry 🙁

    Regards,
    Tobias

    Thread Starter psims529

    (@psims529)

    Oh – interesting… no problem, though. Thanks for your help!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    one reason for this might be that some CSS that influences the height of the cells is only loaded after certain CSS classes have been added to some elements dynamically (by the FixedHeader JS library).

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fixed Header AND Fixed Column’ is closed to new replies.