summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/window.go b/window.go
index 0918c45..789a355 100644
--- a/window.go
+++ b/window.go
@@ -17,8 +17,11 @@ func (w *guiWidget) redoWindows(nextW int, nextH int) {
child.hasTabs = false
child.gocuiSetWH(nextW, nextH)
- child.deleteView()
- child.showView()
+ child.Hide()
+
+ // use the direct method recreateView() to
+ // bypass sanity checks here (fix this?)
+ child.recreateView()
sizeW := child.gocuiSize.Width()
nextW += sizeW + 4
child.redoWindows(startW+3, startH+2)