Fixed text being cut of on several examples
This commit is contained in:
		
							parent
							
								
									4c6e01203c
								
							
						
					
					
						commit
						0fd56f272c
					
				@ -17,7 +17,7 @@ func run () {
 | 
			
		||||
	container := containers.NewContainer(basicLayouts.Dialog { true, true })
 | 
			
		||||
	window.Adopt(container)
 | 
			
		||||
 | 
			
		||||
	container.Adopt(basicElements.NewLabel("you will explode", true), true)
 | 
			
		||||
	container.Adopt(basicElements.NewLabel("you will explode", false), true)
 | 
			
		||||
	cancel := basicElements.NewButton("Cancel")
 | 
			
		||||
	cancel.SetEnabled(false)
 | 
			
		||||
	container.Adopt(cancel, false)
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,7 @@ func main () {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func run () {
 | 
			
		||||
	window, _ := tomo.NewWindow(2, 2)
 | 
			
		||||
	window, _ := tomo.NewWindow(192, 192)
 | 
			
		||||
	window.SetTitle("adventure")
 | 
			
		||||
	container := containers.NewContainer(basicLayouts.Vertical { true, true })
 | 
			
		||||
	window.Adopt(container)
 | 
			
		||||
 | 
			
		||||
@ -9,7 +9,7 @@ func main () {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func run () {
 | 
			
		||||
	window, _ := tomo.NewWindow(480, 2)
 | 
			
		||||
	window, _ := tomo.NewWindow(480, 360)
 | 
			
		||||
	window.SetTitle("example label")
 | 
			
		||||
	window.Adopt(basicElements.NewLabel(text, true))
 | 
			
		||||
	window.OnClose(tomo.Stop)
 | 
			
		||||
 | 
			
		||||
@ -12,7 +12,7 @@ func main () {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func run () {
 | 
			
		||||
	window, _ := tomo.NewWindow(2, 2)
 | 
			
		||||
	window, _ := tomo.NewWindow(128, 128)
 | 
			
		||||
	window.SetTitle("vertical stack")
 | 
			
		||||
 | 
			
		||||
	container := containers.NewContainer(basicLayouts.Vertical { true, true })
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user