瀏覽代碼

Fix notification positioning

Thibaut 11 年之前
父節點
當前提交
2a2cef1467
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/javascripts/views/misc/notif.coffee

+ 1 - 1
assets/javascripts/views/misc/notif.coffee

@@ -41,7 +41,7 @@ class app.views.Notif extends app.View
     return
 
   position: ->
-    notifications = $$ ".#{@constructor.className}"
+    notifications = $$ ".#{app.views.Notif.className}"
     if notifications.length
       lastNotif = notifications[notifications.length - 1]
       @el.style.top = lastNotif.offsetTop + lastNotif.offsetHeight + 16 + 'px'