Fixed padding of button.

This commit is contained in:
Sander Schobers 2019-04-09 20:32:59 +02:00
parent 2ffb579340
commit 552de0c748

View File

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