From b8f7293dba5fef3d12923e9768f7b0861a976955 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Sat, 5 Nov 2022 08:46:46 +0000 Subject: [PATCH] resize: Use scroll element get the scroll height for streams. Since streams and PMS now use left_sidebar_scroll_container for scrolling, use it get the correct scroll height. --- static/js/resize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/resize.js b/static/js/resize.js index 52dd3fa67e..9958e0bfeb 100644 --- a/static/js/resize.js +++ b/static/js/resize.js @@ -88,10 +88,10 @@ function left_userlist_get_new_heights() { res.main_div_min_height = viewport_height - top_navbar_height; // left sidebar - const $stream_filters = $("#stream_filters").expectOne(); + const $stream_filters = $("#left_sidebar_scroll_container").expectOne(); const $buddy_list_wrapper = $("#buddy_list_wrapper").expectOne(); - const stream_filters_real_height = $stream_filters.prop("scrollHeight"); + const stream_filters_real_height = ui.get_scroll_element($stream_filters).prop("scrollHeight"); const user_list_real_height = ui.get_scroll_element($buddy_list_wrapper).prop("scrollHeight"); res.total_leftlist_height =