mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
refactor dockersource container refresh into channel
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user