Selaa lähdekoodia

HUE-1779 [core] Correct offset of notifications on close

Corrected margin on slide up
Enrico Berti 12 vuotta sitten
vanhempi
commit
dbbe283
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      desktop/core/static/js/jquery.notify.js

+ 4 - 4
desktop/core/static/js/jquery.notify.js

@@ -45,7 +45,7 @@
 
     Plugin.prototype.show = function () {
         var _this = this;
-        var MARGIN = 20;
+        var MARGIN = 10;
         var el = $("#jHueNotify").clone();
         el.removeAttr("id");
 
@@ -78,7 +78,7 @@
             el.find(".close").click(function(){
                 el.fadeOut();
                 el.nextAll(".jHueNotify").animate({
-                    top:'-=' + (el.outerHeight() + MARGIN/3)
+                    top:'-=' + (el.outerHeight() + MARGIN)
                 }, 200);
                 el.remove();
             }).show();
@@ -88,7 +88,7 @@
             var t = window.setTimeout(function(){
                 el.fadeOut();
                 el.nextAll(".jHueNotify").animate({
-                    top:'-=' + (el.outerHeight() + MARGIN/3)
+                    top:'-=' + (el.outerHeight() + MARGIN)
                 }, 200);
                 el.remove();
 
@@ -98,7 +98,7 @@
                 $(this).stop(true);
                 $(this).fadeOut();
                 $(this).nextAll(".jHueNotify").animate({
-                    top:'-=' + ($(this).outerHeight() + MARGIN/3)
+                    top:'-=' + ($(this).outerHeight() + MARGIN)
                 }, 200);
             });
             el.show();