-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
unverifiedA bug that has been reported but not verifiedA bug that has been reported but not verified
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
When presenting a form witj text Entry widget(s) with even moderate amounts of text, the form presents fields that are much to small to be usable for anything other than a word or two.
How to reproduce
See attached code
- Push "Go" button
- Form unusably small
Screenshots
Example code
package main
import (
"fmt"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/dialog"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Adaptive Layout")
button := widget.NewButton("Go", func() {
entry1 := widget.NewEntry()
entry1.Text = "This is a little long"
entry2 := widget.NewEntry()
entry2.Text = "This is really very quite long, isn't it?"
items := []*widget.FormItem{
widget.NewFormItem("Foo", entry1),
widget.NewFormItem("Bar", entry2)}
dialog.ShowForm("Sample form", "Yes", "No", items, func(submitted bool) {
if submitted {
fmt.Println("Submitted")
}
}, w)
})
cont := container.NewCenter(button)
w.SetContent(cont)
w.Resize(fyne.NewSize(800,600))
w.ShowAndRun()
}Fyne version
2.5.3
Go compiler version
go1.23.4
Operating system and version
darwin/arm64 (Sequoia)
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
unverifiedA bug that has been reported but not verifiedA bug that has been reported but not verified