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

Incorrect SelectEntry Drop Down Button Position #1361

Closed
stuartmscott opened this issue Oct 6, 2020 · 3 comments
Closed

Incorrect SelectEntry Drop Down Button Position #1361

stuartmscott opened this issue Oct 6, 2020 · 3 comments
Assignees
Labels
blocker Items that would block a forthcoming release bug Something isn't working

Comments

@stuartmscott
Copy link
Member

Describe the bug:

The button to display the popup of options is not positioned correctly

Screenshots:

https://slack-files.com/T029RQSE6-F01BW1XESKG-a651868950

@andydotxyz andydotxyz added blocker Items that would block a forthcoming release bug Something isn't working labels Oct 7, 2020
@andydotxyz
Copy link
Member

Regression, let's get this fixed before release

@andydotxyz
Copy link
Member

I cannot replicate this sorry - can you provide a simple code sample please?

@andydotxyz andydotxyz added the question A question has been asked label Oct 7, 2020
@stuartmscott
Copy link
Member Author

package main

import (
	"fyne.io/fyne"
	"fyne.io/fyne/app"
	"fyne.io/fyne/layout"
	"fyne.io/fyne/widget"
	"log"
	"time"
)

func main() {
	a := app.New()
	w := a.NewWindow("Select Entry")
	s := widget.NewSelectEntry([]string{"a"})
	go func() {
		time.Sleep(5 * time.Second)
		s.SetOptions([]string{"foo", "bar", "foobar"})
		log.Println("Options Updated")
		time.Sleep(5 * time.Second)
		s.SetText("foobarfoobarfoobarfoobar")
		log.Println("Text Updated")
	}()
	w.SetContent(
		fyne.NewContainerWithLayout(layout.NewCenterLayout(),
			widget.NewVBox(s,
				widget.NewPasswordEntry())))
	w.Resize(fyne.NewSize(300, 200))
	w.ShowAndRun()
}

andydotxyz added a commit to andydotxyz/fyne that referenced this issue Oct 7, 2020
@stuartmscott stuartmscott removed the question A question has been asked label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Items that would block a forthcoming release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants