Correct fixed-column widths, make horizontal scrollbar selectable

master
Tad Fisher 2011-08-01 08:13:15 -10:00
parent 3e498d9f68
commit 973aa1118d
1 changed files with 9 additions and 4 deletions

View File

@ -381,12 +381,16 @@
*/
_fixWidthWithCss: function( $obj, tableProps ) {
if ( settings.includePadding ) {
$obj.css({
'width': $obj.width() + tableProps.border
$obj.each(function(index) {
$(this).css({
'width': $(this).width() + tableProps.border
});
});
} else {
$obj.css({
'width': $obj.parent().width() + tableProps.border
$obj.each(function(index) {
$(this).css({
'width': $(this).parent().width() + tableProps.border
});
});
}
},
@ -454,6 +458,7 @@
// set width of fixed column wrapper
$fixedColumn.css({
'height': 0,
'width': fixedColumnWidth
});