转到GXUI-如何设置文本框大小?

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.

Did you try goroutine ?

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