Skip to content

Odd looking SelectEntry with long PlaceHolder - overlap by dropdown ActionItem #4430

@sdassow

Description

@sdassow

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

Using SelectEntry with a long PlaceHolder looks odd because the ActionItem to open the dropdown is rendered partially over the PlaceHolder text.

How to reproduce

  1. Run example code
  2. Hover with mouse over ActionItem to open dropdown
  3. See overlap as shown in screenshot

Screenshots

selectentry-placeholder-overlap

Example code

package main

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

func main() {
	a := app.New()
	w := a.NewWindow("PlaceHolder SelectEntry Overlap Test")

	e := widget.NewSelectEntry([]string{})
	e.PlaceHolder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."

	w.SetContent(container.NewCenter(e))
	w.ShowAndRun()
}

Fyne version

2.4.2

Go compiler version

different versions

Operating system and version

various deskop oses (not tested on mobile)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

unverifiedA bug that has been reported but not verified

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions