mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
fix(tracker): numeric up down crashed when its height was small
This commit is contained in:
parent
8cfd915311
commit
b9c8218ca4
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user