From 407489379998679bf7b3465060183f3a6272b3a4 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Fri, 30 Mar 2018 10:41:55 -0700 Subject: [PATCH] Slightly more fine-grained top-row grid --- wtf.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wtf.go b/wtf.go index f6436571..fc23ed11 100644 --- a/wtf.go +++ b/wtf.go @@ -39,13 +39,13 @@ func main() { weather.Refresh() grid := tview.NewGrid() - grid.SetRows(18, 32, 4) // How _high_ the row is, in terminal rows - grid.SetColumns(40, 40) // How _wide_ the column is, in terminal columns + grid.SetRows(9, 9, 32, 4) // How _high_ the row is, in terminal rows + grid.SetColumns(40, 40) // How _wide_ the column is, in terminal columns grid.SetBorder(false) - grid.AddItem(bamboo.View, 0, 0, 1, 1, 0, 0, false) - grid.AddItem(cal.View, 1, 0, 1, 1, 0, 0, false) - grid.AddItem(stat.View, 2, 0, 2, 3, 0, 0, false) + grid.AddItem(bamboo.View, 0, 0, 2, 1, 0, 0, false) + grid.AddItem(cal.View, 2, 0, 1, 1, 0, 0, false) + grid.AddItem(stat.View, 3, 0, 2, 3, 0, 0, false) grid.AddItem(weather.View, 0, 1, 1, 1, 0, 0, false) app := tview.NewApplication()