summaryrefslogtreecommitdiff
path: root/newctrl/stack.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-15 13:30:35 -0400
committerPietro Gagliardi <[email protected]>2014-10-15 13:30:35 -0400
commit0e32aff30b87b7dc355c825949e6096ca90e7165 (patch)
treeb938553e097b6b5d084ecd2df2fa78bb8f1588de /newctrl/stack.go
parent6b2dac42002cc09972106d75093e504fe33e7a9f (diff)
Fixed compiler errors.
Diffstat (limited to 'newctrl/stack.go')
-rw-r--r--newctrl/stack.go3
1 files changed, 2 insertions, 1 deletions
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 {