summaryrefslogtreecommitdiff
path: root/toolkit/gocui/place.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-27 20:41:53 -0500
committerJeff Carr <[email protected]>2023-04-27 20:41:53 -0500
commit9e285c7affa3257a46e85acde6dc64a9c781b728 (patch)
tree7e957fc0b5f6e631e762baffe292828e318e0910 /toolkit/gocui/place.go
parent6f441738061b0528e86183402474ddb1cdf3c77a (diff)
gocui: grid width fixed
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/place.go')
-rw-r--r--toolkit/gocui/place.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/gocui/place.go b/toolkit/gocui/place.go
index 124908f..bcb273b 100644
--- a/toolkit/gocui/place.go
+++ b/toolkit/gocui/place.go
@@ -209,10 +209,10 @@ func (w *cuiWidget) placeGrid() {
if (w.heights[hCount] < child.realHeight) {
w.heights[hCount] = child.realHeight
}
- log(logVerbose, "grid1: (w,h count)", wCount, hCount, "(X,Y)", w.x, w.y, w.name)
+ log(logVerbose, "grid1: (w,h count)", wCount, hCount, "(X,Y)", w.X, w.Y, w.name)
child.showWidgetPlacement(logNow, "grid1: " + fmt.Sprintf("next()=(%2d,%2d)", w.nextW, w.nextH))
- if ((wCount + 1) < w.y) {
+ if ((wCount + 1) < w.X) {
wCount += 1
} else {
wCount = 0