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

[core] Fix jHueNotify positioning after page scroll

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

+ 1 - 2
desktop/core/src/desktop/static/desktop/js/jquery.notify.js

@@ -60,10 +60,9 @@
     el.find(".close").hide();
 
     if ($(".jHueNotify").last().position() != null) {
-      el.css("top", $(".jHueNotify").last().position().top + $(".jHueNotify").last().outerHeight() + MARGIN - $(window).scrollTop());
+      el.css("top", $(".jHueNotify").last().position().top + $(".jHueNotify").last().outerHeight() + MARGIN);
     }
 
-
     if (_this.options.level == TYPES.ERROR) {
       el.addClass("alert-error");
     }