customer chat: compensate scroll on showScrollHint

This commit is contained in:
Felix Niklas 2016-07-04 16:34:59 +02:00
parent b403a621a3
commit 08e410802d

View file

@ -690,6 +690,8 @@ class ChatWindow extends App.Controller
showScrollHint: -> showScrollHint: ->
@scrollHint.removeClass('is-hidden') @scrollHint.removeClass('is-hidden')
# compensate scroll
@scrollHolder.scrollTop(@scrollHolder.scrollTop() + @scrollHint.outerHeight())
onScrollHintClick: -> onScrollHintClick: ->
# animate scroll # animate scroll