Readded scrolling on chatbar render.
This commit is contained in:
parent
ddec586d2e
commit
4407b9c24b
@ -122,6 +122,10 @@ Template.chatbar.helpers
|
||||
|
||||
msgs
|
||||
|
||||
# When chatbar gets rendered, scroll to the bottom
|
||||
Template.chatbar.rendered = ->
|
||||
$('#chatbody').scrollTop($('#chatbody')[0]?.scrollHeight)
|
||||
false
|
||||
# Scrolls the message container to the bottom. The number of pixels to scroll down is the height of the container
|
||||
Handlebars.registerHelper "autoscroll", ->
|
||||
$('#chatbody').scrollTop($('#chatbody')[0]?.scrollHeight)
|
||||
|
Loading…
Reference in New Issue
Block a user