Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoryak committed Mar 10, 2023
1 parent 4a6792b commit bae6126
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 2.2.5
Fixed #487, a scroll container bug that existed since 2015 :)

### 2.2.3, 2.2.4
Typescript types were added and fixed

### 2.2.2
Fix jQuery 3+ warnings

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ npm install floatthead
bower install floatThead
```
#### Download code
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/2.2.3.zip)
[Latest Release (zip)](https://github.com/mkoryak/floatThead/archive/2.2.5.zip)

#### Via CDN
[https://cdnjs.com/libraries/floatthead/](https://cdnjs.com/libraries/floatthead/)
Expand Down Expand Up @@ -101,8 +101,8 @@ Requirements:

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

This comment has been minimized.

Copy link
@bathos

bathos Mar 17, 2023

extra space

- Chrome, Firefox (all versions from last 10+ years)


Change Log
Expand Down
12 changes: 2 additions & 10 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @preserve jQuery.floatThead 2.2.2 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2021 Misha Koryak **/
/** @preserve jQuery.floatThead 2.2.5 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2023 Misha Koryak **/
// @license MIT

/* @author Misha Koryak
Expand Down Expand Up @@ -106,7 +106,6 @@

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


//browser stuff
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}();
var isFF = /Gecko\//.test(navigator.userAgent);
Expand Down Expand Up @@ -195,7 +194,6 @@
return $(parent);
}


function debug(str){
window && window.console && window.console.error && window.console.error("jQuery.floatThead: " + str);
}
Expand Down Expand Up @@ -350,8 +348,6 @@

var useAbsolutePositioning = null;



if (opts.position === 'auto') {
useAbsolutePositioning = null;
} else if (opts.position === 'fixed') {
Expand Down Expand Up @@ -468,7 +464,6 @@
$table.before($floatContainer);
}


$floatContainer.css({
position: useAbsolutePositioning ? 'absolute' : 'fixed',
marginTop: '0',
Expand Down Expand Up @@ -504,7 +499,6 @@
$sizerCells.outerHeight(headerHeight);
}


function setFloatWidth(){
var tw = tableWidth($table, $fthCells, true);
var $container = responsive ? $responsiveContainer : $scrollContainer;
Expand Down Expand Up @@ -797,7 +791,7 @@
triggerFloatEvent(false);
} else if(scrollingContainerTop - tableContainerGap > tableHeight - floatContainerHeight){
// scrolled past table but there is space in the container under it..
top = tableHeight - floatContainerHeight - scrollingContainerTop - tableContainerGap;
top = tableHeight - floatContainerHeight - scrollingContainerTop + tableContainerGap;
} else {
top = wrappedContainer ? tableTopGap : scrollingContainerTop;
//headers stop at the top of the viewport
Expand Down Expand Up @@ -998,7 +992,6 @@
}
////// end printing stuff


if(locked){ //internal scrolling
if(useAbsolutePositioning){
$scrollContainer.on(eventName('scroll'), containerScrollEvent);
Expand Down Expand Up @@ -1029,7 +1022,6 @@
$window.on(eventName('tabsactivate'), reflowEvent); // same thing for jqueryui
}


if (canObserveMutations) {
var mutationElement = null;
if(util.isFunction(opts.autoReflow)){
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.floatThead.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2012-2018 Misha Koryak
Copyright (c) 2012-2023 Misha Koryak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
45 changes: 43 additions & 2 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.2.4",
"version": "2.2.5",
"description": "fixed table header plugin that works",
"main": "dist/jquery.floatThead.min.js",
"types": "dist/jquery.floatThead.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/jquery.floatThead.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @preserve jQuery.floatThead 2.2.3 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2023 Misha Koryak **/
/** @preserve jQuery.floatThead 2.2.5 - https://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2023 Misha Koryak **/
// @license MIT

/* @author Misha Koryak
Expand Down

0 comments on commit bae6126

Please sign in to comment.