Skip to content

Commit

Permalink
Merge pull request #461 from isosphere/master
Browse files Browse the repository at this point in the history
Specify `Flex::Legacy` for `Layout`. #460
  • Loading branch information
orf authored Jun 29, 2024
2 parents 67f199c + 4cb6b6c commit db5f5bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gping/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit db5f5bb

Please sign in to comment.