2

I'm currently trying to figure out how to set a Go GXUI TextBox size. I tried:

textBox := theme.CreateTextBox()
textBox.SetText("")
textBox.SetSize(math.Size{W: 300, H: 300})

But it doesn't appear to be working - I'm getting a narrow rectangular bar instead. When I change the text, it expands downwards, but not to the sides.

ThePiachu
  • 8,695
  • 17
  • 65
  • 94

1 Answers1

0

Did you try goroutine ?

go func(){
    driver.Call(func(){
        textBox.SetSize(math.Size{W: 300, H: 300})
    })
}()