Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

subscriptions: Fix scrolling of streams list.

Ryan Rehmanca99d62b4e22
diff --git a/static/js/subs.js b/static/js/subs.js
index af5e7468b78..c4d3a372972 100644
--- a/static/js/subs.js
+++ b/static/js/subs.js
@@ -630,11 +630,12 @@ exports.setup_page = function (callback) {
exports.switch_to_stream_row = function (stream_id) {
const stream_row = exports.row_for_stream_id(stream_id);
+ const container = $(".streams-list");
exports.get_active_data().row.removeClass("active");
stream_row.addClass("active");
- scroll_util.scroll_element_into_container(stream_row, stream_row.parent());
+ scroll_util.scroll_element_into_container(stream_row, container);
// It's dubious that we need this timeout any more.
setTimeout(() => {