Correct fixed-column widths, make horizontal scrollbar selectable
parent
3e498d9f68
commit
973aa1118d
|
@ -381,12 +381,16 @@
|
||||||
*/
|
*/
|
||||||
_fixWidthWithCss: function( $obj, tableProps ) {
|
_fixWidthWithCss: function( $obj, tableProps ) {
|
||||||
if ( settings.includePadding ) {
|
if ( settings.includePadding ) {
|
||||||
$obj.css({
|
$obj.each(function(index) {
|
||||||
'width': $obj.width() + tableProps.border
|
$(this).css({
|
||||||
|
'width': $(this).width() + tableProps.border
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$obj.css({
|
$obj.each(function(index) {
|
||||||
'width': $obj.parent().width() + tableProps.border
|
$(this).css({
|
||||||
|
'width': $(this).parent().width() + tableProps.border
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -454,6 +458,7 @@
|
||||||
|
|
||||||
// set width of fixed column wrapper
|
// set width of fixed column wrapper
|
||||||
$fixedColumn.css({
|
$fixedColumn.css({
|
||||||
|
'height': 0,
|
||||||
'width': fixedColumnWidth
|
'width': fixedColumnWidth
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue