Explorar el Código

[core] Fix jHueNotify positioning after page scroll

Enrico Berti hace 10 años
padre
commit
d277357
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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");
     }