Adjust the message feed for long messages.

We now have a callback for whenever the compose
box gets autosized by our old vendored version
of the autosize widget.  It calls code to
scroll up the message feed if we are newly
covering it.
This commit is contained in:
Steve Howell
2018-08-28 20:04:51 +00:00
committed by Tim Abbott
parent 2c7f9ce0fc
commit 9f3b71b0b8

View File

@@ -104,7 +104,11 @@ function clear_box() {
}
exports.autosize_message_content = function () {
$("#compose-textarea").autosize();
$("#compose-textarea").autosize({
callback: function () {
compose_actions.maybe_scroll_up_selected_message();
},
});
};
exports.expand_compose_box = function () {