fix(tracker): numeric up down crashed when its height was small

This commit is contained in:
vsariola 2021-02-11 10:58:41 +02:00
parent 8cfd915311
commit b9c8218ca4

View File

@ -119,6 +119,9 @@ func (s NumericUpDownStyle) button(height int, icon *widget.Icon, delta int, cli
if height < size {
size = height
}
if size < 1 {
size = 1
}
if icon != nil {
icon.Color = s.IconColor
return icon.Layout(gtx, unit.Px(float32(size)))