Преглед изворни кода

HUE-5373 [editor] The horizontal scroll handle should be at the end of the result table

Enrico Berti пре 9 година
родитељ
комит
2e8cf8c6e6

+ 0 - 1
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -2813,7 +2813,6 @@ body {
   -moz-transition: background-color .2s linear, opacity .2s linear;
   -o-transition: background-color .2s linear, opacity .2s linear;
   transition: background-color .2s linear, opacity .2s linear;
-  bottom: 3px;
   height: 9px;
 }
 

+ 3 - 0
desktop/core/src/desktop/static/desktop/js/jquery.horizontalscrollbar.js

@@ -74,6 +74,9 @@
         scrollbarRail.addClass('hue-scrollbar-x-rail').appendTo($(el).parents(".dataTables_wrapper"));
         scrollbarRail.width($(el).parents(".dataTables_wrapper").width() - colWidth);
         scrollbarRail.css("marginLeft", (colWidth) + "px");
+        if (scrollbarRail.position().top > $(window).height() - 10) {
+          scrollbarRail.css('bottom', '3px');
+        }
         $(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");
         });