js: Break lines that become too long after converting var to const.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2019-10-25 15:21:32 -07:00
committed by Tim Abbott
parent 4d37dfcf85
commit 7ae84d5ce1
2 changed files with 7 additions and 2 deletions

View File

@@ -1013,7 +1013,8 @@ MessageListView.prototype = {
// compose box.
var compose_textarea_default_height = 42;
var compose_textarea_current_height = $("#compose-textarea").height();
var expected_change = compose_textarea_current_height - compose_textarea_default_height;
var expected_change =
compose_textarea_current_height - compose_textarea_default_height;
var expected_offset = offset - expected_change;
need_user_to_scroll = expected_offset > scroll_amount;
}