From 87c36cdb268f32175db8316987cc533c6626b836 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 27 May 2020 19:43:47 +0000 Subject: [PATCH] resize: Resize sidebars when toggling user search. It's possible we want to do the same for the stream search, but this PR is highly focused on the buddy list and GROUP PMs widget. --- frontend_tests/node_tests/activity.js | 1 + static/js/user_search.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/frontend_tests/node_tests/activity.js b/frontend_tests/node_tests/activity.js index dbfb022184..98be5e60a2 100644 --- a/frontend_tests/node_tests/activity.js +++ b/frontend_tests/node_tests/activity.js @@ -52,6 +52,7 @@ const _stream_popover = { }; const _resize = { + resize_sidebars: () => {}, resize_page_components: () => {}, }; diff --git a/static/js/user_search.js b/static/js/user_search.js index f156475e7a..b95a97a3a2 100644 --- a/static/js/user_search.js +++ b/static/js/user_search.js @@ -47,6 +47,7 @@ const user_search = function (opts) { self.hide_widget = function () { $widget.addClass('notdisplayed'); + resize.resize_sidebars(); }; self.show_widget = function () { @@ -54,6 +55,7 @@ const user_search = function (opts) { // when the user wants to search. popovers.hide_all_except_sidebars(); $widget.removeClass('notdisplayed'); + resize.resize_sidebars(); }; self.widget_shown = function () {