|
@@ -64,6 +64,9 @@
|
|
|
scrollbarRail.addClass('hue-scrollbar-x-rail').appendTo($(el).parents(".dataTables_wrapper"));
|
|
scrollbarRail.addClass('hue-scrollbar-x-rail').appendTo($(el).parents(".dataTables_wrapper"));
|
|
|
scrollbarRail.width($(el).parents(".dataTables_wrapper").width() - colWidth);
|
|
scrollbarRail.width($(el).parents(".dataTables_wrapper").width() - colWidth);
|
|
|
scrollbarRail.css("marginLeft", (colWidth) + "px");
|
|
scrollbarRail.css("marginLeft", (colWidth) + "px");
|
|
|
|
|
+ $(el).parents('.dataTables_wrapper').bind('scroll_update', function () {
|
|
|
|
|
+ scrollbar.css("left", ((scrollbarRail.width() - scrollbar.width()) * ($(el).parents('.dataTables_wrapper').scrollLeft() / ($(el).parents('.dataTables_wrapper')[0].scrollWidth - $(el).parents('.dataTables_wrapper').width()))) + "px");
|
|
|
|
|
+ });
|
|
|
} else {
|
|
} else {
|
|
|
var colWidth = $(el).parents('.dataTables_wrapper').find('.jHueTableExtenderClonedContainerColumn').width() + 5;
|
|
var colWidth = $(el).parents('.dataTables_wrapper').find('.jHueTableExtenderClonedContainerColumn').width() + 5;
|
|
|
$(el).parents('.dataTables_wrapper').find('.hue-scrollbar-x-rail').width($(el).parents(".dataTables_wrapper").width() - colWidth);
|
|
$(el).parents('.dataTables_wrapper').find('.hue-scrollbar-x-rail').width($(el).parents(".dataTables_wrapper").width() - colWidth);
|