Browse Source

HUE-4600 [editor] Result table headers breaks on sort

Enrico Berti 9 years ago
parent
commit
5cf870b

+ 1 - 0
desktop/core/src/desktop/static/desktop/js/jquery.tableextender.js

@@ -510,6 +510,7 @@
       $(mainScrollable).on('scroll', positionClones);
       $(mainScrollable).on('scroll', positionClones);
     }
     }
     else {
     else {
+      $("#" + $pluginElement.attr("id") + "jHueTableExtenderClonedContainer").children('div').width($pluginElement.outerWidth());
       $pluginElement.find("thead>tr th").each(function (i) {
       $pluginElement.find("thead>tr th").each(function (i) {
         var originalTh = $(this);
         var originalTh = $(this);
         $("#" + $pluginElement.attr("id") + "jHueTableExtenderClonedContainer").find("thead>tr th:eq(" + i + ")").width(originalTh.width()).attr('class', originalTh.attr('class'));
         $("#" + $pluginElement.attr("id") + "jHueTableExtenderClonedContainer").find("thead>tr th:eq(" + i + ")").width(originalTh.width()).attr('class', originalTh.attr('class'));