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

Text won't wrap in value relation widget search tool #4309

Closed
MatparMcWolfie opened this issue May 24, 2023 · 1 comment · Fixed by #5977
Closed

Text won't wrap in value relation widget search tool #4309

MatparMcWolfie opened this issue May 24, 2023 · 1 comment · Fixed by #5977

Comments

@MatparMcWolfie
Copy link

When using a value relation widget in a form, character strings in the drop-down list won't wrap if too long for the width of the pop-up window. I'll venture to guess it's by design to minimize the length of the list, but it may cause issues when trying to select the right feature.

Reproduction steps

  1. Create a form on any layer with a value relation widget
  2. Setup the source layer for the widget with long strings in value column
  3. Open form an try to fill

Expected behavior

Text wrapping instead of being clipped by the edge of the pop-up window.

Observed behavior

Strings clipped (see below).

Screenshots and GIFs

image

Desktop (please complete the following information)

  • OS: Windows 10
  • QGIS 3.30.2
  • Project was copied onto mobile device through windows explorer

Mobile (please complete the following information)

  • Device: Ulefone Power Armor 18T
  • OS: Android 12
  • QField version: 2.8.0

Additional information

  • Problem started happening recently, didn't happen in an older version of QField: No
  • Problem can be reliably reproduced, doesn't happen randomly: Yes
  • Problem happens with all files and projects, not only some files or projects: Yes

As mentioned, I am aware string wrapping could cause the scroll-down list to be too long. A good solution would be to have QField considers actual breaks in the strings and show them, as QGIS is able to do:
Sans titre

It's easy enough to add spacers to separate the strings in the interface, although unnecessary since there are lines between each of them on QField (see first screenshot).

@MatparMcWolfie
Copy link
Author

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants