mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
js: Skip redundant jQuery object reconstruction.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
33c790e2fc
commit
b0dba411d9
@@ -523,9 +523,9 @@ function topic_offset_to_visible_area(topic_row) {
|
||||
const thead_height = 30;
|
||||
const under_closed_compose_region_height = 50;
|
||||
|
||||
const scroll_container_top = $($scroll_container).offset().top + thead_height;
|
||||
const scroll_container_top = $scroll_container.offset().top + thead_height;
|
||||
const scroll_container_bottom =
|
||||
scroll_container_top + $($scroll_container).height() - under_closed_compose_region_height;
|
||||
scroll_container_top + $scroll_container.height() - under_closed_compose_region_height;
|
||||
|
||||
const topic_row_top = $(topic_row).offset().top;
|
||||
const topic_row_bottom = topic_row_top + $(topic_row).height();
|
||||
|
||||
Reference in New Issue
Block a user