aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/headerlayout.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/headerlayout.go')
-rw-r--r--widgets/headerlayout.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/headerlayout.go b/widgets/headerlayout.go
index 7f6b93d3..904b0793 100644
--- a/widgets/headerlayout.go
+++ b/widgets/headerlayout.go
@@ -31,7 +31,7 @@ func (filter HeaderLayoutFilter) forMessage(msg *models.MessageInfo) HeaderLayou
// grid builds a ui grid, populating each cell by calling a callback function
// with the current header string.
func (layout HeaderLayout) grid(cb func(string) ui.Drawable) (grid *ui.Grid, height int) {
- rowCount := len(layout) + 1 // extra row for spacer
+ rowCount := len(layout)
grid = ui.MakeGrid(rowCount, 1, ui.SIZE_EXACT, ui.SIZE_WEIGHT)
for i, cols := range layout {
r := ui.MakeGrid(1, len(cols), ui.SIZE_EXACT, ui.SIZE_WEIGHT)
@@ -40,6 +40,5 @@ func (layout HeaderLayout) grid(cb func(string) ui.Drawable) (grid *ui.Grid, hei
}
grid.AddChild(r).At(i, 0)
}
- grid.AddChild(ui.NewFill(' ')).At(rowCount-1, 0)
return grid, rowCount
}