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 {