1

I initialize my HTML table using the columns option, so that I can set the widths for each indiviual column. Initially, fixedHeader preserves the specified columns widths, once I start scrolling. After I scroll all the way back up, to the point that 'fixedHeaders' are deactivated (no more sticky headers), the column widths are not preserved - but they are all set to equal widths.

Anybody have an idea on how can I force the column widths to be preserved?

oneiros
  • 3,527
  • 12
  • 44
  • 71
  • An issue exists for this problem on the plugin's bug tracker: https://github.com/DataTables/FixedHeader/issues/94 – CDuv Dec 14 '20 at 14:51

1 Answers1

0

You should set autoWidth option to false,as described here:autowidth . Then the related topics of :columns.adjust(). will be helpful too.

Steve
  • 21
  • 2