aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-01 10:29:58 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-01 10:29:58 +0200
commitbbe93d0e1dc23729bcd5904810bb86f9b6b489e9 (patch)
tree737d03dd3300cb7aea72772c4ed8c3cfe21f9090 /view/tpl
parent5dd422e2d84524efaa32bb75125c5804e7944a02 (diff)
downloadvolse-hubzilla-bbe93d0e1dc23729bcd5904810bb86f9b6b489e9.tar.gz
volse-hubzilla-bbe93d0e1dc23729bcd5904810bb86f9b6b489e9.tar.bz2
volse-hubzilla-bbe93d0e1dc23729bcd5904810bb86f9b6b489e9.zip
scroll chat to bottom on fullscreen toggle
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/chat.tpl2
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() {