History

Fix notification positioning

Thibaut committed 11 years ago

Commit 2a2cef11 parent 90a59031 file · +1 −1Browse files

Unified · Split

assets/javascripts/views/misc/notif.coffee+1−1
@@ -41,7 +41,7 @@ class app.views.Notif extends app.View · 40 unmodified lines
41 return41 return
42 42
43 position: ->43 position: ->
44 notifications = $$ ".#{@constructor.className}"44 notifications = $$ ".#{app.views.Notif.className}"
45 if notifications.length45 if notifications.length
46 lastNotif = notifications[notifications.length - 1]46 lastNotif = notifications[notifications.length - 1]
47 @el.style.top = lastNotif.offsetTop + lastNotif.offsetHeight + 16 + 'px'47 @el.style.top = lastNotif.offsetTop + lastNotif.offsetHeight + 16 + 'px'