Template talk:ColPollTable
This template was considered for deletion on 2016 November 20. The result of the discussion was "withdrawn". |
Header drops into table, covering top row
editI'm looking at 2023–24 NCAA Division I women's ice hockey rankings (as well as 2006 BCS computer rankings, referred to in this template's documentation...And also, this own template's documentation), and the table header is dropping into the first row or two of data in the table, thus covering up that data. There's also a blank row above the table header.
Example screenshots:
I've seen behavior like this previously on an old revision of the NCAA women's ice hockey tournament page. @Jroberson108 fixed the table on that page in this revision with the comment "Convert sticky table to "sticky table start" template. No need for top and bottom sticky headers."
Screenshots:
Old revision: |
New revision: |
So I went to Module:ColPollTable, but I couldn't find any reference to "sticky tables" in the code...And while I'm a coder, Lua is not my strong suit.
Does anyone have any idea of what's going on and how to fix this? MikeVitale 13:53, 8 September 2024 (UTC)
- @MikeVitale: My guess is the module adding an overflow div around the table is messing it up because the {{sticky table start}} template does the same thing. Module line 140:
local ret = mw.html.create('div'):css('overflow', 'auto')
- Jroberson108 (talk) 14:14, 8 September 2024 (UTC)
- I don't see a way to add classes to the table as an argument, so you are stuck with just "wikitable" unless changed. Jroberson108 (talk) 14:25, 8 September 2024 (UTC)
- @MikeVitale: I was able to reproduce it by enabling the sticky gadget. You may want to disable it if enabled, or check your Special:MyPage/common.css. Jroberson108 (talk) 14:43, 8 September 2024 (UTC)
- @Jroberson108 Yep, it definitely appears to be the "Make headers of tables display as long as the table is in view, i.e. "sticky" (requires Chrome v91+, Firefox v59+, or Safari)" user preference in the "Testing and Development" section of the "Gadgets" preference page. Unchecking that preference makes the Template:ColPollTable headers display correctly (i.e., not drop into the table and cover the top row.)
- Thanks for the help and suggestion. Do you have any idea where to go to discuss that feature and provide feedback? MikeVitale 22:43, 8 September 2024 (UTC)
- @MikeVitale: Gadget talk page at MediaWiki talk:Gadget-StickyTableHeaders.css. Jroberson108 (talk) 23:13, 8 September 2024 (UTC)