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.
This commit is contained in:
Yashashvi Dave
2018-07-27 12:16:59 +05:30
committed by Tim Abbott
parent e9cf545ada
commit 00f9772ccc

View File

@@ -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 () {