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

Labeling: data-defined alignment grey-out activation issue #37003

Closed
andreasneumann opened this issue Jun 5, 2020 · 0 comments · Fixed by #37006
Closed

Labeling: data-defined alignment grey-out activation issue #37003

andreasneumann opened this issue Jun 5, 2020 · 0 comments · Fixed by #37006
Assignees
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 Labeling Related to QGIS map labeling

Comments

@andreasneumann
Copy link
Member

Describe the bug
In the label settings --> Tab "Placement" --> Section "Data Defined" there is the "Alignment" setting (horizontal and vertical). These two properties are greyed out as long as no attribute or expression is assigned at Coordinate X and Y.

However, once you assign these values, the Alignment properties are still greyed out. One has to close the layer properties dialogue with "OK" and then reopen the Layer properties dialog. Only then, the alignment properties "horizontal" and "vertical" can be set.

image

Issue: I would expect the alignment properties to be made available as soon as both "X" and "Y" is defined without having to close and reopen the dialog. The same issue appears in the "Layer Styling" side panel. But there it is even worse. Opening and closing of the panel doesn't help. The alignment properties are out of reach in the "Layer Styling" panel.

How to Reproduce

  1. Load any Point layer
  2. Open Layer Properties Dialogue
  3. Go to Label settings --> Tab "Placement" --> Section "Data Defined" and set expressions "$x" for "X" and "$y" for Y
  4. --> the Alignment properties are still greyed out
  5. Close the layer properties dialog by using "OK"
  6. Reopen the Layer properties and check Label settings --> Tab "Placement" --> Section "Data Defined". Now the "horizontal" an "vertical" alignment properties are available.

In older QGIS version (don't ask me when) this used to work fine, but since several versions now (at least 1-2 years) this seems to be broken. It is quite annoying if you work a lot with data-defined labeling.

@andreasneumann andreasneumann 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 Labeling Related to QGIS map labeling labels Jun 5, 2020
@elpaso elpaso self-assigned this Jun 5, 2020
elpaso added a commit to elpaso/QGIS that referenced this issue Jun 5, 2020
elpaso added a commit to elpaso/QGIS that referenced this issue Jun 12, 2020
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 Labeling Related to QGIS map labeling
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants