summaryrefslogtreecommitdiff
path: root/grid.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 /grid.go
parent6f441738061b0528e86183402474ddb1cdf3c77a (diff)
gocui: grid width fixed
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/grid.go b/grid.go
index 4ece4d2..3fb1b71 100644
--- a/grid.go
+++ b/grid.go
@@ -5,11 +5,17 @@ import (
)
// Grid numbering examples (H) or (W,H)
+// -----------------------
+// -- (1) -- (2) -- (3) -- (X)
+// -----------------------
+//
+// (Y)
// ---------
// -- (1) --
// -- (2) --
// ---------
//
+// (X,Y)
// -----------------------------
// -- (1,1) -- (2,1) -- (3,1) --
// -- (1,2) -- (2,2) -- (3,2) --
@@ -27,8 +33,6 @@ func (n *Node) NewGrid(name string, w int, h int) *Node {
a.Text = name
a.X = w
a.Y = h
- // a.Width = w
- // a.Height = h
newNode.X = w
newNode.Y = h
newNode.NextX = 1