From 2fe347fc508c6ed9571a02f04d4dfeb0b37a92c2 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sat, 10 Mar 2018 19:34:26 -0800 Subject: [PATCH] Removed extra parens --- termui/block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/termui/block.go b/termui/block.go index 5d1ab8e..d6d9856 100644 --- a/termui/block.go +++ b/termui/block.go @@ -68,8 +68,8 @@ func (b *Block) drawLabel(buf *Buffer) { func (b *Block) Resize(termWidth, termHeight, termCols, termRows int) { b.X = int((float64(b.Grid.Dx())/float64(termCols))*float64(termWidth)) - 2 b.Y = int((float64(b.Grid.Dy())/float64(termRows))*float64(termHeight)) - 2 - b.XOffset = int(((float64(b.Grid.Min.X) / float64(termCols)) * float64(termWidth))) - b.YOffset = int(((float64(b.Grid.Min.Y) / float64(termRows)) * float64(termHeight))) + b.XOffset = int((float64(b.Grid.Min.X) / float64(termCols)) * float64(termWidth)) + b.YOffset = int((float64(b.Grid.Min.Y) / float64(termRows)) * float64(termHeight)) } // SetGrid create a rectangle representing the block's dimensions in the grid.