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.
This commit is contained in:
Aman Agrawal
2022-11-05 08:46:46 +00:00
committed by Tim Abbott
parent 55342efd33
commit b8f7293dba

View File

@@ -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 =