Эх сурвалжийг харах

HUE-1434 [hbase] Buggy Searchbar

Kevin Wang 12 жил өмнө
parent
commit
18804c7

+ 1 - 1
apps/hbase/static/js/utils.js

@@ -177,7 +177,7 @@ function convertTimestamp(timestamp) {
 function resetElements() {
   $(window).scroll(function(e) {
     $(".subnav.sticky").each(function() {
-      var padder = $(this).data('padder'), top = $(this).position().top;
+      var padder = $(this).data('padder'), top = $(this).position().top + (padder ? window.scrollY : 0);
       if(padder && top <= padder.position().top) {
         $(this).removeClass('subnav-fixed').data('padder').remove();
         $(this).removeData('padder');