소스 검색

[core] Fix jHueNotify positioning after page scroll

Enrico Berti 10 년 전
부모
커밋
d277357205
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();
     el.find(".close").hide();
 
 
     if ($(".jHueNotify").last().position() != null) {
     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) {
     if (_this.options.level == TYPES.ERROR) {
       el.addClass("alert-error");
       el.addClass("alert-error");
     }
     }