resize: Update buddy list height when resizing streams list.

If the buddy list is displayed in the left sidebar, height of
both these blocks needs to be changed to accommodate for the
changes.

The fixes the bug that stream list and user list don't fill
left sidebar and have 80px height regardless of viewport height.
This commit is contained in:
Aman Agrawal 2022-11-05 08:18:34 +00:00 committed by Tim Abbott
parent b8f7293dba
commit b6a9819395
1 changed files with 3 additions and 0 deletions

View File

@ -211,6 +211,9 @@ export function resize_stream_filters_container(h) {
h = narrow_window ? left_userlist_get_new_heights() : get_new_heights();
resize_bottom_whitespace(h);
$("#left_sidebar_scroll_container").css("max-height", h.stream_filters_max_height);
if (user_settings.left_side_userlist) {
$("#buddy_list_wrapper").css("max-height", h.buddy_list_wrapper_max_height);
}
}
export function resize_sidebars() {