Skip to content

Commit d5611d2

Browse files
committed
0.5.20
1 parent fc8c5e6 commit d5611d2

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

dist/jquery.dgtable.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jquery.dgtable 0.5.19
2+
* jquery.dgtable 0.5.20
33
* git://github.com/danielgindi/jquery.dgtable.git
44
*/
55

@@ -121,7 +121,7 @@ return /******/ (function(modules) { // webpackBootstrap
121121
* @expose
122122
* @type {string}
123123
*/
124-
DGTable.VERSION = '0.5.19';
124+
DGTable.VERSION = '0.5.20';
125125

126126
/**
127127
* @public
@@ -977,7 +977,8 @@ return /******/ (function(modules) { // webpackBootstrap
977977
cellInner,
978978
colIndex,
979979
column,
980-
$row = $('<div>').addClass(rowClassName).css('float', 'left');
980+
$row = $('<div>').addClass(rowClassName).css('float', 'left'),
981+
sumActualWidth = 0;
981982

982983
for (colIndex = 0; colIndex < colCount; colIndex++) {
983984
column = visibleColumns[colIndex];
@@ -987,9 +988,10 @@ return /******/ (function(modules) { // webpackBootstrap
987988
if (column.cellClasses) cell.className += ' ' + column.cellClasses;
988989
cellInner = cell.appendChild(createElement('div'));
989990
$row.append(cell);
991+
sumActualWidth += column.actualWidth;
990992
}
991993

992-
var $thisWrapper = $('<div>').addClass(that.el.className).css({ "z-index": -1, position: 'absolute', left: '0', top: '-9999px', float: 'left', width: '1px', overflow: 'hidden' }).append($('<div>').addClass(tableClassName).append($('<div>').addClass(tableClassName + '-body').css('width', 99999).append($row)));
994+
var $thisWrapper = $('<div>').addClass(that.el.className).css({ "z-index": -1, position: 'absolute', left: '0', top: '-9999px', float: 'left', width: '1px', overflow: 'hidden' }).append($('<div>').addClass(tableClassName).append($('<div>').addClass(tableClassName + '-body').css('width', sumActualWidth + 10000).append($row)));
993995

994996
$thisWrapper.appendTo(document.body);
995997

0 commit comments

Comments
 (0)