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

HUE-6077 [frontend] Fix jHueScrollUp positioning for the file viewer

Enrico Berti пре 8 година
родитељ
комит
d2e2212
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/jquery.scrollup.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/jquery.scrollup.js

@@ -87,7 +87,7 @@
 
     huePubSub.subscribe('reposition.scroll.anchor.up', function(){
       $('#jHueScrollUpAnchor').css('right', '20px');
-      if (!$(_this.element).is('body')) {
+      if (!$(_this.element).is('body') && $(_this.element).is(':visible')) {
         var adjustRight = $(window).width() - $(_this.element).offset().left - $(_this.element).width();
         if (adjustRight > 20) {
           $('#jHueScrollUpAnchor').css('right', adjustRight + 'px');