diff options
author | Tom Forbes <tom@tomforb.es> | 2024-06-29 16:27:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-29 16:27:24 +0100 |
commit | db5f5bb28789a50ec782ed6a4dae544ab13821aa (patch) | |
tree | 1eb0d25e6bd2a717b33bcb8085e1810172dfee0f | |
parent | 67f199ccdb5d50dd31ea5ecff12f6dfe944782a7 (diff) | |
parent | 4cb6b6cd33b97b7616e698624c80b79f1179601b (diff) |
Merge pull request #461 from isosphere/master
Specify `Flex::Legacy` for `Layout`. #460
-rw-r--r-- | gping/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gping/src/main.rs b/gping/src/main.rs index e2aab4d..691293b 100644 --- a/gping/src/main.rs +++ b/gping/src/main.rs @@ -25,7 +25,7 @@ use std::thread; use std::thread::{sleep, JoinHandle}; use std::time::{Duration, Instant}; use tui::backend::{Backend, CrosstermBackend}; -use tui::layout::{Constraint, Direction, Layout}; +use tui::layout::{Constraint, Direction, Layout, Flex}; use tui::style::{Color, Style}; use tui::text::Span; use tui::widgets::{Axis, Block, Borders, Chart, Dataset}; @@ -480,6 +480,7 @@ fn main() -> Result<()> { Event::Render => { terminal.draw(|f| { let chunks = Layout::default() + .flex(Flex::Legacy) .direction(Direction::Vertical) .vertical_margin(args.vertical_margin) .horizontal_margin(args.horizontal_margin) |