Fix outline
This commit is contained in:
@@ -109,7 +109,7 @@ impl Rect {
|
||||
}
|
||||
|
||||
pub fn layout(rows: Vec<LayoutItem>) -> LayoutItem {
|
||||
LayoutItem::Rows {
|
||||
LayoutItem::Columns {
|
||||
unit: Size::Percent(100),
|
||||
items: rows,
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ impl Widget for Outline {
|
||||
|
||||
scope.draw_text((0, 1), "|\n".repeat(scope.rect.height as usize - 2));
|
||||
scope.draw_text(
|
||||
(scope.rect.width, 1),
|
||||
(scope.rect.width - 1, 1),
|
||||
"|\n".repeat(scope.rect.height as usize - 2),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user