mirror of
https://github.com/alemidev/scope-tui.git
synced 2024-11-23 22:24:48 +01:00
fix: constraints use relative percentages
This commit is contained in:
parent
e56052c789
commit
df273dd011
1 changed files with 4 additions and 4 deletions
|
@ -270,7 +270,7 @@ pub fn run_app<T : Backend>(args: Args, terminal: &mut Terminal<T>) -> Result<()
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
.style(Style::default().fg(Color::Cyan))
|
.style(Style::default().fg(Color::Cyan))
|
||||||
.widths(&[Constraint::Length(50), Constraint::Length(25), Constraint::Length(15), Constraint::Length(10), Constraint::Length(10), Constraint::Length(10)]);
|
.widths(&[Constraint::Percentage(40), Constraint::Percentage(20), Constraint::Percentage(20), Constraint::Percentage(7), Constraint::Percentage(7), Constraint::Percentage(6)]);
|
||||||
f.render_widget(heading, Rect { x: size.x, y: size.y, width: size.width, height:1 });
|
f.render_widget(heading, Rect { x: size.x, y: size.y, width: size.width, height:1 });
|
||||||
size.height -= 1;
|
size.height -= 1;
|
||||||
size.y += 1;
|
size.y += 1;
|
||||||
|
|
Loading…
Reference in a new issue