Skip to content

Commit

Permalink
#101 - update gh-pages to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoryak committed Aug 6, 2014
1 parent 2979d27 commit 1af29b4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 22 deletions.
16 changes: 9 additions & 7 deletions dist/jquery.floatThead-slim.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @preserve jQuery.floatThead 1.2.7 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2014 Misha Koryak
// @preserve jQuery.floatThead 1.2.8 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2014 Misha Koryak
// @license MIT

/* @author Misha Koryak
Expand Down Expand Up @@ -92,7 +92,7 @@
*/
function scrollbarWidth() {
var $div = $( //borrowed from anti-scroll
'<div style="width:50px;height:50px;overflow-y:scroll;'
'<div style="width:50px;height:50px;overflow-y:scroll;'
+ 'position:absolute;top:-200px;left:-200px;"><div style="height:100px;width:100%">'
+ '</div>'
);
Expand Down Expand Up @@ -416,11 +416,13 @@
}
}
unfloat();
var widths = [];
for(i=0; i < numCols; i++){
var _rowcell = $rowCells.get(i);
var rowWidth = _rowcell.offsetWidth;
$headerCells.eq(i).width(rowWidth);
$tableCells.eq(i).width(rowWidth);
widths[i] = $rowCells.get(i).offsetWidth;
}
for(i=0; i < numCols; i++){
$headerCells.eq(i).width(widths[i]);
$tableCells.eq(i).width(widths[i]);
}
refloat();
} else {
Expand All @@ -435,7 +437,7 @@
function floatContainerBorderWidth(side){
var border = $scrollContainer.css("border-"+side+"-width");
var w = 0;
if (~border.indexOf('px')) {
if (border && ~border.indexOf('px')) {
w = parseInt(border, 10);
}
return w;
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.floatThead-slim.min.js

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

16 changes: 9 additions & 7 deletions dist/jquery.floatThead.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @preserve jQuery.floatThead 1.2.7 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2014 Misha Koryak
// @preserve jQuery.floatThead 1.2.8 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2014 Misha Koryak
// @license MIT

/* @author Misha Koryak
Expand Down Expand Up @@ -92,7 +92,7 @@
*/
function scrollbarWidth() {
var $div = $( //borrowed from anti-scroll
'<div style="width:50px;height:50px;overflow-y:scroll;'
'<div style="width:50px;height:50px;overflow-y:scroll;'
+ 'position:absolute;top:-200px;left:-200px;"><div style="height:100px;width:100%">'
+ '</div>'
);
Expand Down Expand Up @@ -416,11 +416,13 @@
}
}
unfloat();
var widths = [];
for(i=0; i < numCols; i++){
var _rowcell = $rowCells.get(i);
var rowWidth = _rowcell.offsetWidth;
$headerCells.eq(i).width(rowWidth);
$tableCells.eq(i).width(rowWidth);
widths[i] = $rowCells.get(i).offsetWidth;
}
for(i=0; i < numCols; i++){
$headerCells.eq(i).width(widths[i]);
$tableCells.eq(i).width(widths[i]);
}
refloat();
} else {
Expand All @@ -435,7 +437,7 @@
function floatContainerBorderWidth(side){
var border = $scrollContainer.css("border-"+side+"-width");
var w = 0;
if (~border.indexOf('px')) {
if (border && ~border.indexOf('px')) {
w = parseInt(border, 10);
}
return w;
Expand Down
Loading

0 comments on commit 1af29b4

Please sign in to comment.