fix procbox height

gpu
Jorge Barreto 2020-09-13 16:52:43 -04:00 committed by Lucas Zampieri
parent 4d35a36af1
commit d78df2a7af
1 changed files with 1 additions and 1 deletions

View File

@ -2462,7 +2462,7 @@ class ProcBox(Box):
height_p = cls.height_p height_p = cls.height_p
cls.width = round(Term.width * width_p / 100) cls.width = round(Term.width * width_p / 100)
cls.height = round(Term.height * height_p / 100) cls.height = round(Term.height * height_p / 100) + 1
if cls.height + Box._b_cpu_h > Term.height: cls.height = Term.height - Box._b_cpu_h if cls.height + Box._b_cpu_h > Term.height: cls.height = Term.height - Box._b_cpu_h
cls.x = Term.width - cls.width + 1 cls.x = Term.width - cls.width + 1
cls.y = Box._b_cpu_h + 1 cls.y = Box._b_cpu_h + 1