Fix temperature position with '-f' flag specified (Close #97)

This commit is contained in:
Caleb Bassi 2019-01-26 14:01:20 -08:00
parent 9235982f70
commit ecd9a32230

View File

@ -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(