From b6363096b416ddbe8f4a207cdd896194ba3e6e95 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Sat, 29 Aug 2020 04:06:21 -0400 Subject: [PATCH] bug: fix bug where you could move down in basic proc when search was off (#211) Fixes a bug where you could move down in a process widget even if search was disabled while in basic mode. --- CHANGELOG.md | 2 ++ src/app/layout_manager.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b7cd40c..55f8c06f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bug Fixes +- [211](https://github.com/ClementTsang/bottom/pull/211): Fixes a bug where you could move down in the process widget even if the process widget search was closed. + ## [0.4.7] - 2020-08-26 ### Bug Fixes diff --git a/src/app/layout_manager.rs b/src/app/layout_manager.rs index abd998d2..8b5ba40d 100644 --- a/src/app/layout_manager.rs +++ b/src/app/layout_manager.rs @@ -561,6 +561,7 @@ impl BottomLayout { .left_neighbour(Some(4)) .right_neighbour(Some(DEFAULT_WIDGET_ID)) .width_ratio(1) + .parent_reflector(Some((WidgetDirection::Right, 2))) .build(), BottomWidget::builder() .canvas_handle_width(true) @@ -583,6 +584,7 @@ impl BottomLayout { .up_neighbour(Some(DEFAULT_WIDGET_ID)) .left_neighbour(Some(4)) .right_neighbour(Some(7)) + .parent_reflector(Some((WidgetDirection::Up, 1))) .build()]) .build(), ]) @@ -646,6 +648,7 @@ impl BottomLayout { .down_neighbour(Some(DEFAULT_WIDGET_ID + 1)) .left_neighbour(Some(4)) .right_neighbour(Some(DEFAULT_WIDGET_ID)) + .parent_reflector(Some((WidgetDirection::Right, 2))) .build(), BottomWidget::builder() .canvas_handle_width(true) @@ -667,6 +670,7 @@ impl BottomLayout { .up_neighbour(Some(DEFAULT_WIDGET_ID)) .left_neighbour(Some(4)) .right_neighbour(Some(7)) + .parent_reflector(Some((WidgetDirection::Up, 1))) .build()]) .build(), ])