Skip to content

Commit bae6126

Browse files
committed
version bump
1 parent 4a6792b commit bae6126

File tree

8 files changed

+59
-20
lines changed

8 files changed

+59
-20
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### 2.2.5
2+
Fixed #487, a scroll container bug that existed since 2015 :)
3+
4+
### 2.2.3, 2.2.4
5+
Typescript types were added and fixed
6+
17
### 2.2.2
28
Fix jQuery 3+ warnings
39

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ npm install floatthead
2626
bower install floatThead
2727
```
2828
#### Download code
29-
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/2.2.3.zip)
29+
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/2.2.5.zip)
3030

3131
#### Via CDN
3232
[https://cdnjs.com/libraries/floatthead/](https://cdnjs.com/libraries/floatthead/)
@@ -101,8 +101,8 @@ Requirements:
101101

102102
Supported Browsers:
103103
-------------
104-
- IE8 or better (**must read** [this for ANY Internet Exploder integrations](http://mkoryak.github.io/floatThead/examples/row-groups/))
105-
- Chrome, Firefox (all versions from last 3 years)
104+
- IE9 or better (**must read** [this for ANY Internet Exploder integrations](http://mkoryak.github.io/floatThead/examples/row-groups/))
105+
- Chrome, Firefox (all versions from last 10+ years)
106106

107107

108108
Change Log

dist/jquery.floatThead.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @preserve jQuery.floatThead 2.2.2 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2021 Misha Koryak **/
1+
/** @preserve jQuery.floatThead 2.2.5 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2023 Misha Koryak **/
22
// @license MIT
33

44
/* @author Misha Koryak
@@ -106,7 +106,6 @@
106106

107107
var globalCanObserveMutations = typeof MutationObserver !== 'undefined';
108108

109-
110109
//browser stuff
111110
var ieVersion = function(){for(var a=3,b=document.createElement("b"),c=b.all||[];a = 1+a,b.innerHTML="<!--[if gt IE "+ a +"]><i><![endif]-->",c[0];);return 4<a?a:document.documentMode}();
112111
var isFF = /Gecko\//.test(navigator.userAgent);
@@ -195,7 +194,6 @@
195194
return $(parent);
196195
}
197196

198-
199197
function debug(str){
200198
window && window.console && window.console.error && window.console.error("jQuery.floatThead: " + str);
201199
}
@@ -350,8 +348,6 @@
350348

351349
var useAbsolutePositioning = null;
352350

353-
354-
355351
if (opts.position === 'auto') {
356352
useAbsolutePositioning = null;
357353
} else if (opts.position === 'fixed') {
@@ -468,7 +464,6 @@
468464
$table.before($floatContainer);
469465
}
470466

471-
472467
$floatContainer.css({
473468
position: useAbsolutePositioning ? 'absolute' : 'fixed',
474469
marginTop: '0',
@@ -504,7 +499,6 @@
504499
$sizerCells.outerHeight(headerHeight);
505500
}
506501

507-
508502
function setFloatWidth(){
509503
var tw = tableWidth($table, $fthCells, true);
510504
var $container = responsive ? $responsiveContainer : $scrollContainer;
@@ -797,7 +791,7 @@
797791
triggerFloatEvent(false);
798792
} else if(scrollingContainerTop - tableContainerGap > tableHeight - floatContainerHeight){
799793
// scrolled past table but there is space in the container under it..
800-
top = tableHeight - floatContainerHeight - scrollingContainerTop - tableContainerGap;
794+
top = tableHeight - floatContainerHeight - scrollingContainerTop + tableContainerGap;
801795
} else {
802796
top = wrappedContainer ? tableTopGap : scrollingContainerTop;
803797
//headers stop at the top of the viewport
@@ -998,7 +992,6 @@
998992
}
999993
////// end printing stuff
1000994

1001-
1002995
if(locked){ //internal scrolling
1003996
if(useAbsolutePositioning){
1004997
$scrollContainer.on(eventName('scroll'), containerScrollEvent);
@@ -1029,7 +1022,6 @@
10291022
$window.on(eventName('tabsactivate'), reflowEvent); // same thing for jqueryui
10301023
}
10311024

1032-
10331025
if (canObserveMutations) {
10341026
var mutationElement = null;
10351027
if(util.isFunction(opts.autoReflow)){

dist/jquery.floatThead.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

license.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2012-2018 Misha Koryak
3+
Copyright (c) 2012-2023 Misha Koryak
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package-lock.json

Lines changed: 43 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "floatthead",
3-
"version": "2.2.4",
3+
"version": "2.2.5",
44
"description": "fixed table header plugin that works",
55
"main": "dist/jquery.floatThead.min.js",
66
"types": "dist/jquery.floatThead.d.ts",

src/jquery.floatThead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @preserve jQuery.floatThead 2.2.3 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2023 Misha Koryak **/
1+
/** @preserve jQuery.floatThead 2.2.5 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2023 Misha Koryak **/
22
// @license MIT
33

44
/* @author Misha Koryak

0 commit comments

Comments
 (0)