Freezing caption when using FixedColumns extension

Freezing caption when using FixedColumns extension

smelchersmelcher Posts: 40Questions: 11Answers: 0

I am using the FixedColumns extension. When I scroll to the right, the caption scrolls off the screen. Is there a way to fix the caption?

Answers

  • colincolin Posts: 15,177Questions: 1Answers: 2,590

    Is this a duplicate of your other thread?

    Colin

  • smelchersmelcher Posts: 40Questions: 11Answers: 0

    The other thread is using the same plugins but the question is different. When I scroll the table, I'd like the Caption to remain in place. Earlier versions of Datatables seemed to do this.

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Here is a little test case showing that issue.

    The problem is that we've changed how the fixed columns work to use position: sticky. So now the caption really is scrolling with the rest of the table as it would if the whole table was scrolling.

    The only way to work around at that the moment would be to use a div outside of the table. I don't think there is a way to make a caption sticky as well. Sorry.

    Allan

  • smelchersmelcher Posts: 40Questions: 11Answers: 0

    No problem. I appreciate the response.

Sign In or Register to comment.