From 0e32aff30b87b7dc355c825949e6096ca90e7165 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 15 Oct 2014 13:30:35 -0400 Subject: Fixed compiler errors. --- newctrl/stack.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newctrl/stack.go') diff --git a/newctrl/stack.go b/newctrl/stack.go index 053cb5b..dfa4b64 100644 --- a/newctrl/stack.go +++ b/newctrl/stack.go @@ -47,6 +47,7 @@ func newStack(o orientation, controls ...Control) Stack { for _, c := range s.controls { c.setParent(p) } + return s } // NewHorizontalStack creates a new Stack that arranges the given Controls horizontally. @@ -122,7 +123,7 @@ func (s *stack) resize(x int, y int, width int, height int, d *sizing) { } // 3) now actually place controls for i, c := range s.controls { - as := c.resize(x, y, s.width[i], s.height[i], d) + c.resize(x, y, s.width[i], s.height[i], d) if s.orientation == horizontal { x += s.width[i] + d.xpadding } else { -- cgit v1.2.3