summaryrefslogtreecommitdiff
path: root/toolkit/gocui/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-04 06:31:30 -0500
committerJeff Carr <[email protected]>2023-04-04 06:31:30 -0500
commitd6b1fa497dcb21e194348d321bfc25f6b128438f (patch)
treee653d621c1302dd58de4b8b280cd13f613e518b7 /toolkit/gocui/common.go
parent8982b2a8cfb10ad2ac2e50c0fcbdad88556e495a (diff)
gocui: use (w,h) and avoid (x,y) names
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/common.go')
-rw-r--r--toolkit/gocui/common.go4
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