summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-08-29 04:06:21 -0400
committerGitHub <noreply@github.com>2020-08-29 04:06:21 -0400
commitb6363096b416ddbe8f4a207cdd896194ba3e6e95 (patch)
tree6d3b48955a9ed94762a00d7e919010d67ae44c26
parent6e7b35c421b35c672956f3e5012408fe2205c46c (diff)
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.
-rw-r--r--CHANGELOG.md2
-rw-r--r--src/app/layout_manager.rs4
2 files changed, 6 insertions, 0 deletions
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(),
])