Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extented Form Widget duplicates first Row #694

Closed
DerThorsten opened this issue Feb 21, 2020 · 2 comments
Closed

Extented Form Widget duplicates first Row #694

DerThorsten opened this issue Feb 21, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@DerThorsten
Copy link

DerThorsten commented Feb 21, 2020

Describe the bug:

When I try to extend a Form widget and append rows to it, the first row is duplicated.

To Reproduce:

See code below

Screenshots:

This what I get from the code below:
actual

This what I would expect:
Screenshot from 2020-02-21 16-36-14

Example code:

package main

import (
	"fyne.io/fyne/app"
	"fyne.io/fyne/widget"
)

type MyForm struct {
	widget.Form
}

func NewMyForm() *MyForm {

	name := widget.NewEntry()
	form := &MyForm{}
	form.ExtendBaseWidget(form)
	form.Append("Name", name)
	return form
}

func main() {
	a := app.New()
	w := a.NewWindow("Hello")

	w.SetContent(NewMyForm())

	w.ShowAndRun()
}

Device

  • OS: Ubuntu 19.10
  • Go version: 1.13
  • Fyne version: 1.2.0
@DerThorsten DerThorsten changed the title Extented Form Widget duplicated first Row Extented Form Widget duplicates first Row Feb 21, 2020
@andydotxyz
Copy link
Member

Thanks, it seems we missed Form when the widget extending code was added...

@andydotxyz andydotxyz added the bug Something isn't working label Feb 22, 2020
@andydotxyz andydotxyz self-assigned this Feb 22, 2020
andydotxyz added a commit that referenced this issue Feb 22, 2020
andydotxyz added a commit that referenced this issue Feb 24, 2020
@andydotxyz
Copy link
Member

Resolved on the releases/v1.2.3 branch, release pending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants