scroll chat to bottom on fullscreen toggle

This commit is contained in:
Mario Vavti 2016-04-01 10:29:58 +02:00
parent 5dd422e2d8
commit bbe93d0e1d

View File

@ -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() {