From 00f9772cccf34ccb8ab86f7bf47c9d4eccf21830 Mon Sep 17 00:00:00 2001 From: Yashashvi Dave Date: Fri, 27 Jul 2018 12:16:59 +0530 Subject: [PATCH] stream list: Scroll to opened stream on zoom out from stream-more-topics. Currently on zoom out from stream topics, scrollbar didn't scroll back to opened stream. Because call to scroll-to-stream func isn't called after all streams view is displayed. So wrong stream element is passed to func. Fix this by calling scroll-to-stream func after all-stream-list view is displayed. --- static/js/stream_list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/stream_list.js b/static/js/stream_list.js index dc4bbba144..d459321753 100644 --- a/static/js/stream_list.js +++ b/static/js/stream_list.js @@ -181,11 +181,11 @@ function zoom_in(options) { function zoom_out(options) { popovers.hide_all(); topic_list.zoom_out(); + exports.show_all_streams(); if (options.stream_li) { exports.scroll_stream_into_view(options.stream_li); } - exports.show_all_streams(); } exports.show_all_streams = function () {