Vertical scroll bar is prolonged by white bar above table
Vertical scroll bar is prolonged by white bar above table
fortiernor
Posts: 10Questions: 2Answers: 0
Link to test case: Can I provide address and password privately?
Debugger code (debug.datatables.net): egutan
Error messages shown: none
Description of problem: see title.
Answers
For the quickest response, it would be best to simulate the problem in our test area, as it's easier to debug there. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
This is happening in my staging site. Could I send you the address and password without it being publicly visible?
Sure, please send to me and we'll take a look,
Colin
Actually we just put it in production so the address is:
https://actionclimatoutaouais.org/document/sondage-gatineau-2021-resultats/
Thank you!
I didn't find your Datatables init code but it looks like you are using both FixedColumns and FixedHeader for the table. Likely the problem is due to the incompatibility FixedHeader has with the Datatables scrolling features and FixedColumns. This is documented in the FixedHeader docs:
Also see the Compatibility Matrix for more details.
Kevin
I did look at the compatibility matrix, which states that FixedColumns and FixedHeaders are compatible, and that scrolling is compatible with everything else. I assumed the compatibility matrix was more up-to-date than the text you quoted. It seems the documentation is not in sync?
Here is the init code (I skipped the "language" (translations) part):
It does seem FixedColumns is involved with the problem: turning it off solves it. However that is not a viable option on a table that wide (function over form...).
Looking at it with Firefox inspect, it seems the problem is related to overflow from this element, i.e. the inset attribute; turning the inset off seems to solve the problem:
Ok, now I am utterly confused. Commenting off FixedHeader seems to solve the problem, which would mean the text about FixedHeader quoted above by kthorngren is correct, and the compatibility table is wrong. But:
- with FixedHeaders off in my init code, the header is still fixed (good);
- if FixedHeader is incompatible with scrolling, what does it do? If you don't scroll you don't need a fixed header, it seems to me.
Ok, the problem seems to be that the compatibility table refers to the latest version of FixedHeaders (4.0.0) (and FixedColumns (4.0.1)).
However the download builder on the download page actually provides FixedHeaders 3.2.0.
Shouldn't the download page provide the latest (stable) versions?
I've entered a bug report:
https://datatables.net/forums/discussion/70436/fixedheaders-download-provides-outdated-version-according-to-compatibility-table/p1?new=1