mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
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:
committed by
Tim Abbott
parent
4d37dfcf85
commit
7ae84d5ce1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user