瀏覽代碼

[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");
     }