From 4cb6b6cd33b97b7616e698624c80b79f1179601b Mon Sep 17 00:00:00 2001 From: Matthew Scheffel Date: Sat, 29 Jun 2024 12:20:56 -0300 Subject: Specify `Flex::Legacy` for `Layout`. #460 --- gping/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3