summaryrefslogtreecommitdiff
path: root/newctrl/grid.go
diff options
context:
space:
mode:
Diffstat (limited to 'newctrl/grid.go')
-rw-r--r--newctrl/grid.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/newctrl/grid.go b/newctrl/grid.go
index 3c6f343..98abf9b 100644
--- a/newctrl/grid.go
+++ b/newctrl/grid.go
@@ -423,3 +423,11 @@ func (g *grid) preferredSize(d *sizing) (width, height int) {
return colwidth + (g.xmax-1)*d.xpadding,
rowheight + (g.ymax-1)*d.ypadding
}
+
+func (g *grid) nTabStops() int {
+ n := 0
+ for _, c := range g.controls {
+ n += c.control.nTabStops()
+ }
+ return n
+}