Strange Firefox-only bug
Strange Firefox-only bug
ericDecker
Posts: 15Questions: 0Answers: 0
Hello,
I'm experiencing a minor bug on some of my Datatables in Firefox only. It's hard to describe and I cannot provide a link, so I'm including an image that illustrates the issue. But, basically, one th of the thead in .dataTables_scrollBody is somehow peeking out from behind the one in .dataTables_scrollHead. There's an extra pixel of gray below the actual header (across the whole width) and a small black line about the width of the sorting image. I can hide it with CSS, but I would rather address the problem in a more appropriate way.
http://imageshack.us/photo/my-images/594/471l.png/
http://debug.datatables.net/adarop (#all_files_list)
I'm experiencing a minor bug on some of my Datatables in Firefox only. It's hard to describe and I cannot provide a link, so I'm including an image that illustrates the issue. But, basically, one th of the thead in .dataTables_scrollBody is somehow peeking out from behind the one in .dataTables_scrollHead. There's an extra pixel of gray below the actual header (across the whole width) and a small black line about the width of the sorting image. I can hide it with CSS, but I would rather address the problem in a more appropriate way.
http://imageshack.us/photo/my-images/594/471l.png/
http://debug.datatables.net/adarop (#all_files_list)
This discussion has been closed.
Replies
Not sure if this is something you'd care to change in the core, like having position: static !important on the tbody th's?
Allan
http://datatables.net/forums/discussion/16171/fixedcolumns-nightly-visual-discrepancy-in-firefox-for-multi-row-headers/p1
I my case it was more or less fixed by hiding protruding elements.
I'm not sure how adding one style rule qualifies as "amazingly complex, hard to maintain and difficult to debug." What is the practical use-case for wanting to have position:relative on a table header? Misconfiguration or not, I'm not sure why anyone would ever want to customize this, and if they did, why it wouldn't be possible under my proposed solution... but that's okay, I'm looking forward to seeing the CSS in 1.10. :)
> What is the practical use-case for wanting to have position:relative on a table header?
None I'd say! That was a misconfiguration. My point is that there are millions of possible misconfigurations and this is just one. Just like DataTables assumes valid HTML is used, it assumes sensible CSS :-)
Allan