refactor dockersource container refresh into channel

This commit is contained in:
Bradley Cicenas
2017-03-05 06:46:41 +00:00
parent 8fb5c5de59
commit 3172f141f9
9 changed files with 85 additions and 100 deletions

View File

@@ -24,8 +24,9 @@ func (cg *CompactGrid) Align() {
// Update y recursively
cg.header.SetY(cg.Y)
y := cg.Y + 1
for n, r := range cg.Rows {
r.SetY(y + n)
for _, r := range cg.Rows {
r.SetY(y)
y += r.Height
}
// Update width recursively
cg.header.SetWidth(cg.Width)