From bbe93d0e1dc23729bcd5904810bb86f9b6b489e9 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 1 Apr 2016 10:29:58 +0200 Subject: scroll chat to bottom on fullscreen toggle --- view/tpl/chat.tpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 5afa7a029..2da7abe34 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -199,10 +199,12 @@ function addmailtext(data) { function adjustFullscreenTopBarHeight() { $('#chatTopBar').height($(window).height() - $('#chatBottomBar').outerHeight(true) - $('.section-title-wrapper').outerHeight(true) - 23); + $('#chatTopBar').scrollTop($('#chatTopBar').prop('scrollHeight')); } function adjustInlineTopBarHeight() { $('#chatTopBar').height($(window).height() - $('#chatBottomBar').outerHeight(true) - $('.section-title-wrapper').outerHeight(true) - $('nav').outerHeight(true) - 23); + $('#chatTopBar').scrollTop($('#chatTopBar').prop('scrollHeight')); } function isMobile() { -- cgit v1.2.3