summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/window.go b/window.go
index 789a355..5e1b6ec 100644
--- a/window.go
+++ b/window.go
@@ -4,6 +4,7 @@ import (
"go.wit.com/widget"
)
+// re-draws the buttons for each of the windows
func (w *guiWidget) redoWindows(nextW int, nextH int) {
var startW int = nextW
var startH int = nextH
@@ -19,9 +20,7 @@ func (w *guiWidget) redoWindows(nextW int, nextH int) {
child.gocuiSetWH(nextW, nextH)
child.Hide()
- // use the direct method recreateView() to
- // bypass sanity checks here (fix this?)
- child.recreateView()
+ child.drawView()
sizeW := child.gocuiSize.Width()
nextW += sizeW + 4
child.redoWindows(startW+3, startH+2)