Replace conversation panel js resizing with flex styling.

// FREEBIE
This commit is contained in:
Sam Lanning 2016-01-21 23:45:13 +00:00 committed by lilia
parent 496604a448
commit 0569d4c889
5 changed files with 43 additions and 19 deletions

View file

@ -266,21 +266,12 @@
this.view.measureScrollPosition();
window.autosize(this.$messageField);
var $discussionContainer = this.$('.discussion-container'),
$conversationHeader = this.$('.conversation-header'),
$attachmentPreviews = this.$('.attachment-previews'),
var $attachmentPreviews = this.$('.attachment-previews'),
$bottomBar = this.$('.bottom-bar');
$bottomBar.outerHeight(
this.$messageField.outerHeight() +
$attachmentPreviews.outerHeight() + 1);
var $bottomBarNewHeight = $bottomBar.outerHeight();
//TODO: revisit this logic for new layout.
$discussionContainer.outerHeight(
this.$el.outerHeight() -
$bottomBarNewHeight -
$conversationHeader.outerHeight() - 40);
this.view.scrollToBottomIfNeeded();
},