diff options
Diffstat (limited to 'toolkit/gocui/common.go')
| -rw-r--r-- | toolkit/gocui/common.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/gocui/common.go b/toolkit/gocui/common.go index 08f8e3c..6d0da27 100644 --- a/toolkit/gocui/common.go +++ b/toolkit/gocui/common.go @@ -53,6 +53,10 @@ func setupWidget(a *toolkit.Action) *cuiWidget { w.horizontal = false } } + if (a.WidgetType == toolkit.Grid) { + w.logicalW = make(map[int]int) // how tall each row in the grid is + w.logicalH = make(map[int]int) // how wide each column in the grid is + } // w.showWidgetPlacement(logNow) return w |
