diff options
| author | ruki <[email protected]> | 2018-01-20 18:40:16 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-20 18:40:16 +0800 |
| commit | 9e9946b8744cec7941cc9a0fd244a517231155a9 (patch) | |
| tree | ec80e63c5bb979d2a4ff7e7de7917937e19bf8b6 | |
| parent | 623cb048114b26cf10b250aad43475f8971a9649 (diff) | |
fix resize view
| -rw-r--r-- | xmake/core/ui/view.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/ui/view.lua b/xmake/core/ui/view.lua index d918ff07b..ef5c5d64a 100644 --- a/xmake/core/ui/view.lua +++ b/xmake/core/ui/view.lua @@ -221,6 +221,9 @@ function view:resize() self._WINDOW = nil end + -- need renew canvas + self._CANVAS = nil + -- create a new window self._WINDOW = curses.new_pad(self:height() > 0 and self:height() or 1, self:width() > 0 and self:width() or 1) assert(self._WINDOW, "cannot create window!") |
