Browse Source

Fix notification positioning

Thibaut 11 năm trước cách đây
mục cha
commit
2a2cef1467
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'