Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoryak committed Apr 16, 2018
1 parent 013d3c7 commit c0c88d8
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jquery.floatThead [2.1.1](https://github.com/mkoryak/floatThead/releases)
jquery.floatThead [2.1.2](https://github.com/mkoryak/floatThead/releases)
=================
[![woot](http://giant.gfycat.com/AnyGloriousAlpaca.gif "or just click")](http://mkoryak.github.io/floatThead/)

Expand All @@ -16,7 +16,7 @@ npm install floatthead
bower install floatThead
```
#### Download code
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/2.1.1.zip)
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/2.1.2.zip)

#### Via CDN
[http://cdnjs.com/libraries/floatthead/](http://cdnjs.com/libraries/floatthead/) [http://www.jsdelivr.com/#!jquery.floatthead](http://www.jsdelivr.com/#!jquery.floatthead)
Expand Down
15 changes: 8 additions & 7 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @preserve jQuery.floatThead 2.1.1 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2018 Misha Koryak **/
/** @preserve jQuery.floatThead 2.1.2 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2018 Misha Koryak **/
// @license MIT

/* @author Misha Koryak
Expand All @@ -7,7 +7,7 @@
* Dependencies:
* jquery 1.9.0 + [required] OR jquery 1.7.0 + jquery UI core
*
* http://mkoryak.github.io/floatThead/
* https://mkoryak.github.io/floatThead/
*
* Tested on FF13+, Chrome 21+, IE8, IE9, IE10, IE11
*/
Expand Down Expand Up @@ -213,7 +213,7 @@
}

/**
* Check if a given table has been datatableized (http://datatables.net)
* Check if a given table has been datatableized (https://datatables.net)
* @param $table
* @return {Boolean}
*/
Expand Down Expand Up @@ -501,7 +501,7 @@
function setFloatWidth(){
var tw = tableWidth($table, $fthCells, true);
var $container = responsive ? $responsiveContainer : $scrollContainer;
var width = $container.width() || tw;
var width = $container.length ? getOffsetWidth($container[0]) : tw;
var floatContainerWidth = $container.css("overflow-y") != 'hidden' ? width - scrollbarOffset.vertical : width;
$floatContainer.width(floatContainerWidth);
if(locked){
Expand Down Expand Up @@ -847,15 +847,16 @@
});
} else {
var transform = 'translateX(' + pos.left + 'px) translateY(' + pos.top + 'px)';
$floatContainer.css({
var cssObj = {
'-webkit-transform' : transform,
'-moz-transform' : transform,
'-ms-transform' : transform,
'-o-transform' : transform,
'transform' : transform,
'top': 0,
'left': 0
});
};
cssObj[/rtl/i.test(document.documentElement.dir || '') ? 'right': 'left'] = 0;
$floatContainer.css(cssObj);
}
oldTop = pos.top;
oldLeft = pos.left;
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.floatThead.min.js

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "floatthead",
"version": "2.1.1",
"version": "2.1.2",
"description": "fixed table header plugin that works",
"main": "dist/jquery.floatThead.js",
"scripts": {
Expand Down

0 comments on commit c0c88d8

Please sign in to comment.