From d6b1fa497dcb21e194348d321bfc25f6b128438f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 4 Apr 2023 06:31:30 -0500 Subject: gocui: use (w,h) and avoid (x,y) names Signed-off-by: Jeff Carr --- toolkit/gocui/common.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toolkit/gocui/common.go') 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 -- cgit v1.2.3