Maintain scroll position when textarea resizes

Fixes #770

// FREEBIE
This commit is contained in:
lilia 2016-04-15 19:17:16 -07:00
parent 3ac7552d2f
commit 21bfb61b7a

View file

@ -299,6 +299,13 @@
this.view.measureScrollPosition();
window.autosize(this.$messageField);
var $attachmentPreviews = this.$('.attachment-previews'),
$bottomBar = this.$('.bottom-bar');
$bottomBar.outerHeight(
this.$messageField.outerHeight() +
$attachmentPreviews.outerHeight() + 11);
this.view.scrollToBottomIfNeeded();
},