diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2024-02-03 19:59:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 19:59:12 -0500 |
commit | b6660610d02a88aeb23fbcda8378be67a85259e7 (patch) | |
tree | 630345cf215dc0e894a8a6f70a60eedea71c5d0f /src/canvas.rs | |
parent | 8d84b688b004b9c6f383e446a4048cadf1000a31 (diff) |
deps: bump ratatui to 0.26 (#1406)
* deps: bump ratatui to 0.26
* adjust process width
* a few nonzero optimizations
* add a todo
* update comments to be less confusing about time chart
Diffstat (limited to 'src/canvas.rs')
-rw-r--r-- | src/canvas.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/canvas.rs b/src/canvas.rs index 0f3e7202..ca144c15 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -72,7 +72,8 @@ pub struct Painter { /// The constraints of a widget relative to its parent. /// -/// This is used over ratatui's internal representation due to https://github.com/ClementTsang/bottom/issues/896. +/// This is used over ratatui's internal representation due to +/// <https://github.com/ClementTsang/bottom/issues/896>. pub enum LayoutConstraint { CanvasHandled, Grow, @@ -498,6 +499,8 @@ impl Painter { } if self.derived_widget_draw_locs.is_empty() || app_state.is_force_redraw { + // TODO: Can I remove this? Does ratatui's layout constraints work properly for fixing + // https://github.com/ClementTsang/bottom/issues/896 now? fn get_constraints( direction: Direction, constraints: &[LayoutConstraint], area: Rect, ) -> Vec<Rect> { |