diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-04-01 10:29:58 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-04-01 10:29:58 +0200 |
commit | bbe93d0e1dc23729bcd5904810bb86f9b6b489e9 (patch) | |
tree | 737d03dd3300cb7aea72772c4ed8c3cfe21f9090 | |
parent | 5dd422e2d84524efaa32bb75125c5804e7944a02 (diff) | |
download | volse-hubzilla-bbe93d0e1dc23729bcd5904810bb86f9b6b489e9.tar.gz volse-hubzilla-bbe93d0e1dc23729bcd5904810bb86f9b6b489e9.tar.bz2 volse-hubzilla-bbe93d0e1dc23729bcd5904810bb86f9b6b489e9.zip |
scroll chat to bottom on fullscreen toggle
-rw-r--r-- | view/tpl/chat.tpl | 2 |
1 files changed, 2 insertions, 0 deletions
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() { |