mirror of
				https://github.com/vsariola/sointu.git
				synced 2025-10-31 07:54:26 -04:00 
			
		
		
		
	fix(tracker): numeric up down crashed when its height was small
This commit is contained in:
		| @ -119,6 +119,9 @@ func (s NumericUpDownStyle) button(height int, icon *widget.Icon, delta int, cli | |||||||
| 				if height < size { | 				if height < size { | ||||||
| 					size = height | 					size = height | ||||||
| 				} | 				} | ||||||
|  | 				if size < 1 { | ||||||
|  | 					size = 1 | ||||||
|  | 				} | ||||||
| 				if icon != nil { | 				if icon != nil { | ||||||
| 					icon.Color = s.IconColor | 					icon.Color = s.IconColor | ||||||
| 					return icon.Layout(gtx, unit.Px(float32(size))) | 					return icon.Layout(gtx, unit.Px(float32(size))) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user