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

Fixed legend size is not respected when exporting a layout #53263

Open
2 tasks done
gioman opened this issue May 29, 2023 · 2 comments
Open
2 tasks done

Fixed legend size is not respected when exporting a layout #53263

gioman opened this issue May 29, 2023 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@gioman
Copy link
Contributor

gioman commented May 29, 2023

What is the bug or the crash?

In a template if the legend size is fixed with a data defined WxH the legend shows as expected in the project (truncated at the borders of the legend bbox), but when exporting (PDF, PNG, etc.) the legend overflows the defined size.

Steps to reproduce the issue

Create a layout

Add a legend

Set legend size with data defined values so that the legend item shows only a part of the items

Export the layout and compare

Desktop:
image

Export to PDF on Dresktop or Server:
image

Versions

Latest QGIS LTR 3.28

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@gioman gioman added Bug Either a bug report, or a bug fix. Let's hope for the latter! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels May 29, 2023
@elpaso
Copy link
Contributor

elpaso commented Jun 6, 2023

I cannot reproduce, how did you set this option?

immagine

@gioman
Copy link
Contributor Author

gioman commented Jul 2, 2023

@elpaso sorry for the late reply.

That option is active

image

and I can still replicate on the latest 3.28 and 3.32

image

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! Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

No branches or pull requests

2 participants