Closed
Description
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
Checkbox only works if the window is resized to its minimal state, i.e. exactly the size of the checkbox + its label.
How to reproduce
Already communicated with Andy on Slack
Screenshots
No response
Example code
package main
import (
"fmt"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Hello World!")
w.Resize(fyne.NewSize(400, 240))
chk := widget.NewCheck("Option 1", func(b bool) {
fmt.Printf("option1 is: %v\n", b)
})
w.SetContent(chk)
w.ShowAndRun()
}
Fyne version
v2.5.3
Go compiler version
1.23.3
Operating system and version
Debian 12
Additional Information
No response
Activity