Now working in IE9+. Fixes #447.

This commit is contained in:
Mottie 2013-12-02 10:14:22 -06:00
parent cbf501d46a
commit dcdfcf8e16

View File

@ -1,4 +1,4 @@
/*! tablesorter CSS Sticky Headers widget (beta) - updated 11/24/2013 (v2.14.2)
/*! tablesorter CSS Sticky Headers widget (beta) - updated 12/2/2013 (v2.14.3)
* Requires a modern browser, tablesorter v2.8+ and jQuery 1.7+
*/
/*global jQuery: false */
@ -24,7 +24,8 @@
bottom = c.$table.height() - $thead.height() - (c.$table.find('tfoot').height() || 0),
deltaY = $win.scrollTop() - offset.top - 1, // subtract out top border
deltaX = $win.scrollLeft() + offset.left;
$thead.css({
// IE can only transform header cells - fixes #447 thanks to @gakreol!
$thead.children().children().css({
// this non-prefixed transform has cross-browser support in jQuery 1.8+
"transform": "translate(" +
(deltaX > 0 && deltaX <= left ? deltaX - wo.cssStickyHeaders_offsetX : 0) + "px," +