Fixed padding of button.
This commit is contained in:
parent
2ffb579340
commit
552de0c748
@ -158,7 +158,6 @@ func (b *Button) Render(ctx Context) {
|
|||||||
var pad = style.Dimensions.TextPadding
|
var pad = style.Dimensions.TextPadding
|
||||||
bounds = bounds.Inset(pad)
|
bounds = bounds.Inset(pad)
|
||||||
pos := bounds.Min
|
pos := bounds.Min
|
||||||
pos.X += pad
|
|
||||||
if b.Icon != nil && b.Icon.Height() > 0 {
|
if b.Icon != nil && b.Icon.Height() > 0 {
|
||||||
icon := b.scaledIcon(ctx, bounds.Dy())
|
icon := b.scaledIcon(ctx, bounds.Dy())
|
||||||
if icon != nil {
|
if icon != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user