mirror of https://github.com/zulip/zulip.git
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:
parent
b8f7293dba
commit
b6a9819395
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue