mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Now working in IE9+. Fixes #447.
This commit is contained in:
parent
cbf501d46a
commit
dcdfcf8e16
@ -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+
|
* Requires a modern browser, tablesorter v2.8+ and jQuery 1.7+
|
||||||
*/
|
*/
|
||||||
/*global jQuery: false */
|
/*global jQuery: false */
|
||||||
@ -24,7 +24,8 @@
|
|||||||
bottom = c.$table.height() - $thead.height() - (c.$table.find('tfoot').height() || 0),
|
bottom = c.$table.height() - $thead.height() - (c.$table.find('tfoot').height() || 0),
|
||||||
deltaY = $win.scrollTop() - offset.top - 1, // subtract out top border
|
deltaY = $win.scrollTop() - offset.top - 1, // subtract out top border
|
||||||
deltaX = $win.scrollLeft() + offset.left;
|
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+
|
// this non-prefixed transform has cross-browser support in jQuery 1.8+
|
||||||
"transform": "translate(" +
|
"transform": "translate(" +
|
||||||
(deltaX > 0 && deltaX <= left ? deltaX - wo.cssStickyHeaders_offsetX : 0) + "px," +
|
(deltaX > 0 && deltaX <= left ? deltaX - wo.cssStickyHeaders_offsetX : 0) + "px," +
|
||||||
|
Loading…
Reference in New Issue
Block a user