Skip to content

Commit

Permalink
Merge pull request #318 from rsadsb/update-ratatui-0-28-1
Browse files Browse the repository at this point in the history
Update ratatui to 0.28.1
  • Loading branch information
wcampbell0x2a authored Sep 3, 2024
2 parents 7f1661e + b445b8c commit f5fcf22
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 24 deletions.
73 changes: 52 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rsadsb_common = { path = "../rsadsb_common" }
hex = "0.4.0"
crossterm = "0.27.0"
clap = { version = "4.5.13", features = ["color", "derive", "wrap_help"] }
ratatui = "0.27.0"
ratatui = "0.28.1"
gpsd_proto = "1.0.0"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
Expand Down
4 changes: 2 additions & 2 deletions apps/src/radar/radar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ fn init_tcp_reader(
.direction(Direction::Vertical)
.margin(1)
.constraints([Constraint::Min(3), Constraint::Percentage(100)].as_ref())
.split(f.size());
.split(f.area());

let paragraph = Paragraph::new(format!("radar: Waiting for connection to {ip}:{port}"))
.alignment(Alignment::Left);
Expand Down Expand Up @@ -712,7 +712,7 @@ fn draw(
.direction(Direction::Vertical)
.margin(1)
.constraints([Constraint::Min(3), Constraint::Percentage(100)].as_ref())
.split(f.size());
.split(f.area());

// render tabs
let airplane_len = format!("Airplanes({})", adsb_airplanes.len());
Expand Down

0 comments on commit f5fcf22

Please sign in to comment.