list_render: Use simplebar container to track scroll event.

We have changed our all instances of list_render to use
simplebar and thus, we will now use simplebar container
to track scroll event for all the lists created by
list_render.

This fixes the bug of new subscribers not rendering on
scrolling at the end of subscriber list in stream settings
and similar bug in some other lists also.

This commit also removes scroll_util.get_list_scrolling_container
function as this is no longer used.

Fixes #15637.
This commit is contained in:
Aman Agrawal
2020-07-04 13:37:43 +05:30
committed by Tim Abbott
parent d41f66a917
commit 19b7ef3888
15 changed files with 60 additions and 66 deletions

View File

@@ -419,6 +419,7 @@ exports.complete_rerender = function () {
topic_sort: topic_sort,
},
html_selector: get_topic_row,
simplebar_container: $('#recent_topics_table .table_fix_head'),
});
revive_current_focus();
};