Fix widget padding

This commit is contained in:
Caleb Bassi 2019-02-28 18:52:20 -08:00
parent 9513fa11a1
commit 1ec9fa2896

View File

@ -91,8 +91,8 @@ func (self *Block) SetRect(x1, y1, x2, y2 int) {
self.Inner = image.Rect(
self.Min.X+1+self.PaddingLeft,
self.Min.Y+1+self.PaddingTop,
self.Max.X-1+self.PaddingRight,
self.Max.Y-1+self.PaddingBottom,
self.Max.X-1-self.PaddingRight,
self.Max.Y-1-self.PaddingBottom,
)
}