From 552de0c748693d953b40249d1dc028bd8008ca6e Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Tue, 9 Apr 2019 20:32:59 +0200 Subject: [PATCH] Fixed padding of button. --- ui/button.go | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/button.go b/ui/button.go index 80fc77b..d42a845 100644 --- a/ui/button.go +++ b/ui/button.go @@ -158,7 +158,6 @@ func (b *Button) Render(ctx Context) { var pad = style.Dimensions.TextPadding bounds = bounds.Inset(pad) pos := bounds.Min - pos.X += pad if b.Icon != nil && b.Icon.Height() > 0 { icon := b.scaledIcon(ctx, bounds.Dy()) if icon != nil {