Browse Source

[core] Fix jHueNotify positioning after page scroll

Enrico Berti 10 years ago
parent
commit
d277357
1 changed files with 1 additions and 2 deletions
  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");
     }