diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2024-01-02 05:06:17 -0500 |
---|---|---|
committer | ClementTsang <34804052+ClementTsang@users.noreply.github.com> | 2024-01-12 21:35:22 -0500 |
commit | 14cc5c400f8aceac38729a24d0358380f5abe941 (patch) | |
tree | a55fa53596ea69a7db525b5e4863b544e13b22ff /src/canvas.rs | |
parent | f093902aef3954bef79fa348c46e1bf3949675cf (diff) |
temp checkpointclean_up_layout_code
Diffstat (limited to 'src/canvas.rs')
-rw-r--r-- | src/canvas.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/canvas.rs b/src/canvas.rs index 3a02803b..106e8720 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -73,8 +73,10 @@ 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. +#[derive(Clone, Debug, Default)] pub enum LayoutConstraint { CanvasHandled, + #[default] Grow, Ratio(u32, u32), } |