LabelCheckbox no longer expands vertically
It should in theory valign to middle this way, but grid layout suffers from #1
This commit is contained in:
		
							parent
							
								
									34794f4c77
								
							
						
					
					
						commit
						6497da69ed
					
				@ -25,7 +25,7 @@ func NewLabelCheckbox (value bool, text string) *LabelCheckbox {
 | 
			
		||||
	box.label.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
 | 
			
		||||
	box.Add(box.checkbox)
 | 
			
		||||
	box.Add(box.label)
 | 
			
		||||
	box.SetLayout(layouts.NewGrid([]bool { false, true }, []bool { true }))
 | 
			
		||||
	box.SetLayout(layouts.NewGrid([]bool { false, true }, []bool { false }))
 | 
			
		||||
 | 
			
		||||
	box.OnMouseUp(box.handleMouseUp)
 | 
			
		||||
	box.label.OnMouseUp(box.handleMouseUp)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user