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

Layer properties window expands to much wider than the screen if layer has a very long field name #15894

Closed
qgib opened this issue Nov 19, 2012 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented Nov 19, 2012

Author Name: Alister Hood (@AlisterH)
Original Redmine Issue: 6730
Affected QGIS version: master
Redmine category:gui


  • Load a layer with a very long field name, like the one attached. I think the most likely way you will encounter this in real life is when you join layers.
  • Open the layer properties. Unless you have a very wide screen, or very small system fonts, the layer properties window should be wider than your screen. I'm guessing the problem is with the drop down list next to the "Insert field" button on the "Actions" tab.
  • Bonus: try to resize the oversize layer properties window with the mouse. At least on Windows, it will probably disappear, but not close (so you can't do anything in the main QGIS window). You will need to press escape. If that doesn't work, click in the main QGIS window and then press escape.

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2012

Author Name: Alister Hood (@AlisterH)


Oh, another place with the same problem is the Field calculator, due to the drop-down box for selecting an existing field to update. Since QGIS csv support is read-only you won't be able to demonstrate that with the attached layer unless you join it to a shapefile layer or something


  • 5094 was configured as long_names.csv

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2012

Author Name: Alister Hood (@AlisterH)


Note that other parts of the gui truncate field names with a "..."
Unfortunately they just truncate the end of the layer name (look in the "Advanced Search"/"Search query builder" dialog for example). This means that often you can't distinguish between the different fields from a joined layer. In some cases (like the search query builder) the behaviour could perhaps be improved by using horizontal scroll bars and more intelligent resizing of dialogs.

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2016

Author Name: Médéric RIBREUX (Médéric RIBREUX)


Hello, bug triage...

on QGIS 2.13 master, I have not this problem anymore: opening the csv's fields panel just display a dialog box with an horizontal scrollbar.

Can you confirm ?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 21, 2016

Author Name: Alister Hood (@AlisterH)


Yes, this is fixed. Although because the table scrolls by cell, if the field name is more than twice as wide as the visible space, you can't read what is in the middle of the cell, unless you drag to resize the cell smaller, in which case if the font is small enough it wraps the contents, but only to two lines, so if the field name is still too long it cuts off the end!
I think this is enough of a corner case that I wouldn't really worry about these issues - the oversize dialog was more of a real problem.

@qgib
Copy link
Contributor Author

qgib commented Apr 9, 2016

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

No branches or pull requests

1 participant