From ecd9a3223033378f2ba4c12eeaf044e3f29ab171 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sat, 26 Jan 2019 14:01:20 -0800 Subject: [PATCH] Fix temperature position with '-f' flag specified (Close #97) --- src/widgets/temp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/temp.go b/src/widgets/temp.go index 7d0685b..4311233 100644 --- a/src/widgets/temp.go +++ b/src/widgets/temp.go @@ -79,7 +79,7 @@ func (self *Temp) Draw(buf *ui.Buffer) { buf.SetString( fmt.Sprintf("%3dF", self.Data[key]), ui.NewStyle(fg), - image.Pt(self.Inner.Dx()-3, y+1), + image.Pt(self.Inner.Max.X-4, self.Inner.Min.Y+y), ) } else { buf.SetString(