Fix column resize bug: wrong resize when RepeatCells work

This commit is contained in:
Aris Feryanto 2011-06-07 12:51:22 +07:00
parent 3e3234b156
commit 5ed509bd89

View File

@ -177,15 +177,13 @@
$firstRowCols = this.alignment != 'vertical' ?
$(this.t).find('tr:first th.draggable') :
$(this.t).find('tr:first td');
var firstElmtIdx = $firstRowCols.index();
$firstRowCols.each(function() {
$this = $(this);
var n = $this.index();
$cb = $(g.cRsz).find('div:eq(' + (n - firstElmtIdx) + ')'); // column border
for (var n = 0; n < $firstRowCols.length; n++) {
$this = $($firstRowCols[n]);
$cb = $(g.cRsz).find('div:eq(' + n + ')'); // column border
var pad = parseInt($this.css('padding-right'));
$cb.css('left', Math.floor($this.position().left + $this.width() + pad))
.show();
});
}
},
/**