summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Scheffel <matt@dataheck.com>2024-06-29 12:20:56 -0300
committerMatthew Scheffel <matt@dataheck.com>2024-06-29 12:20:56 -0300
commit4cb6b6cd33b97b7616e698624c80b79f1179601b (patch)
tree1eb0d25e6bd2a717b33bcb8085e1810172dfee0f
parent67f199ccdb5d50dd31ea5ecff12f6dfe944782a7 (diff)
Specify `Flex::Legacy` for `Layout`. #460
-rw-r--r--gping/src/main.rs3
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)