From 08e410802dbd3d4d47d71b1db147fa41a231e83d Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Mon, 4 Jul 2016 16:34:59 +0200 Subject: [PATCH] customer chat: compensate scroll on showScrollHint --- app/assets/javascripts/app/controllers/chat.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/controllers/chat.coffee b/app/assets/javascripts/app/controllers/chat.coffee index 595b76e16..20c4b809d 100644 --- a/app/assets/javascripts/app/controllers/chat.coffee +++ b/app/assets/javascripts/app/controllers/chat.coffee @@ -690,6 +690,8 @@ class ChatWindow extends App.Controller showScrollHint: -> @scrollHint.removeClass('is-hidden') + # compensate scroll + @scrollHolder.scrollTop(@scrollHolder.scrollTop() + @scrollHint.outerHeight()) onScrollHintClick: -> # animate scroll