Erase pad before resizing, fixes #45

This commit is contained in:
Yohann D'ANELLO 2020-12-12 21:19:55 +01:00
parent cd5b7086f2
commit 599f75b676
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ class Display:
self.height = height
if hasattr(self, "pad") and resize_pad and \
self.height >= 0 and self.width >= 0:
self.pad.erase()
self.pad.resize(self.height + 1, self.width + 1)
def refresh(self, *args, resize_pad: bool = True) -> None: