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

Entry Widget cusror position with mouse is offset vertically by theme.SizeNameInputBorder #2387

Closed
stuartdd opened this issue Aug 19, 2021 · 2 comments
Labels
unverified A bug that has been reported but not verified

Comments

@stuartdd
Copy link

Describe the bug:

When an Entry or MultiLineEntry field is displayed with initial text content, positioning of the cursor is offset vertically. You have to click ABOVE the text in order to set the cursor position. Clicking ON the text sets the cursor to the start of text.

The distance ABOVE the text required to set the cursor position is proportional to the theme.SizeNameInputBorder value.

To Reproduce:

Steps to reproduce the behaviour:

  1. Add an Entry,
  2. Set the Entry text
  3. Set theme.SizeNameInputBorder to > 8 for noticeable effect
  4. Click ON the text with the mouse to set the cursor (text entry) position to the middle of the text.
  5. The cursor is set to the start of the text not the position clicked.
  6. Click just ABOVE the text with the mouse to set the cursor (text entry) position to the middle of the text.
  7. The cursor is set to the correct position.

Screenshots:

Untitled Diagram

Device (please complete the following information):

  • OS: Linux Mint 20.2 Cinnamon
  • Version: 5.11.0-25-generic
  • Go version: go version go1.16.7 linux/amd64
  • Fyne version: fyne.io/fyne/v2 v2.0.4
@stuartdd stuartdd added the unverified A bug that has been reported but not verified label Aug 19, 2021
andydotxyz added a commit to andydotxyz/fyne that referenced this issue Aug 26, 2021
@andydotxyz
Copy link
Member

Thanks @stuartdd it should be fixed by the diff in #2405 - let me know and we should get it landed for 2.1 :)

andydotxyz added a commit that referenced this issue Aug 27, 2021
@andydotxyz
Copy link
Member

Thanks, now on develop ready for 2.1

@andydotxyz andydotxyz added this to the Aberlour (2.1) milestone Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants