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 panel's symbol are drawn with excessive width if they are located >=2nd-level of a rule-based tree #21051

Closed
qgib opened this issue Jun 15, 2015 · 4 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 Jun 15, 2015

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 12973
Affected QGIS version: master
Redmine category:gui


The layer panel will draw symbols for polygons located in 2nd level of a rule-based tree with a width twice a large as normal. It's a bit difficult to explain in words, but the attached screenshot (bug-legend.png) should make it easy to understand.

Steps to reproduce:

  1. Create a new project
  2. Add a polygon dataset
  3. Open the layer property window, and set the symbology to rule-based
  4. Add a root rule (simple fill), add a sub-rule to that root rule (also simple fill), and apply the symbology
  5. Look at your layer panel, you'll notice the sub-rule legend symbol's width is abnormally large

It's not a huge issue, but for people who like to keep the layer panel a small as possible, the extra space taken by the legend symbol's extra width is unfortunate.


@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Aug 2, 2017

Author Name: Johannes Kroeger (Johannes Kroeger)


I cannot confirm this bug in QGIS 2.18.11.

I loaded NE countries.
Added a rule on @"labelrank" = 3@ with a simple fill.
Used "Refine selected rules" -> "Add categories to rule" (which I guess nIRV meant by sub-rule) on the @Level@ attribute. Also used a simple fill.

All style "icons" in the layer tree look square and the same size.


  • 11294 was configured as layers.png

@qgib
Copy link
Contributor Author

qgib commented Aug 2, 2017

Author Name: Giovanni Manghi (@gioman)


  • description was changed from The layer panel will draw symbols for polygons located in 2nd level of a rule-based tree with a width twice a large as normal. It's a bit difficult to explain in words, but the attached screenshot (bug-legend.png) should make it easy to understand.

Steps to reproduce:

Create a new project

Add a polygon dataset

Open the layer property window, and set the symbology to rule-based

Add a root rule (simple fill), add a sub-rule to that root rule (also simple fill), and apply the symbology

Look at your layer panel, you'll notice the sub-rule legend symbol's width is abnormally large

It's not a huge issue, but for people who like to keep the layer panel a small as possible, the extra space taken by the legend symbol's extra width is unfortunate. to The layer panel will draw symbols for polygons located in 2nd level of a rule-based tree with a width twice a large as normal. It's a bit difficult to explain in words, but the attached screenshot (bug-legend.png) should make it easy to understand.

Steps to reproduce:

Create a new project

Add a polygon dataset

Open the layer property window, and set the symbology to rule-based

Add a root rule (simple fill), add a sub-rule to that root rule (also simple fill), and apply the symbology

Look at your layer panel, you'll notice the sub-rule legend symbol's width is abnormally large

It's not a huge issue, but for people who like to keep the layer panel a small as possible, the extra space taken by the legend symbol's extra width is unfortunate.

  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Aug 7, 2017

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


  • resolution was changed from to worksforme
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Aug 7, 2017
@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 25, 2019
@qgib qgib added this to the Future Release - Nice to have milestone May 25, 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