mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
fix border minimum area
This commit is contained in:
parent
fd2e8f83f6
commit
7df9cc930d
1 changed files with 1 additions and 1 deletions
|
|
@ -443,7 +443,7 @@ impl<S: BorderStyle> Widget for Border<S> {
|
|||
}
|
||||
fn render (&self, to: &mut TuiOutput) -> Usually<()> {
|
||||
let area = to.area();
|
||||
if area.w() > 2 && area.y() > 2 {
|
||||
if area.w() > 0 && area.y() > 0 {
|
||||
to.blit(&self.0.nw(), area.x(), area.y(), self.0.style());
|
||||
to.blit(&self.0.ne(), area.x() + area.w() - 1, area.y(), self.0.style());
|
||||
to.blit(&self.0.sw(), area.x(), area.y() + area.h() - 1, self.0.style());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue