summaryrefslogtreecommitdiff
path: root/newctrl/stack.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-16 18:41:17 -0400
committerPietro Gagliardi <[email protected]>2014-10-16 18:41:17 -0400
commit3084d0f243299b40ebdaf2f0310f315e4987705a (patch)
treecde5115c080fab26d7958981d426d685b623f759 /newctrl/stack.go
parent634ef7d4d9f96a556962167e2cd3d839f8528d5c (diff)
Implemented tabbing properly. Tab order still backwards.
Diffstat (limited to 'newctrl/stack.go')
-rw-r--r--newctrl/stack.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/newctrl/stack.go b/newctrl/stack.go
index dfa4b64..7de2fbb 100644
--- a/newctrl/stack.go
+++ b/newctrl/stack.go
@@ -180,6 +180,14 @@ func (s *stack) preferredSize(d *sizing) (width int, height int) {
return
}
+func (s *stack) nTabStops() int {
+ n := 0
+ for _, c := range s.controls {
+ n += c.nTabStops()
+ }
+ return n
+}
+
// TODO the below needs to be changed
// Space returns a null Control intended for padding layouts with blank space.