qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.49k stars 2.99k forks source link

Print Composer: Add button to adjust the global lenght to a fix width of the legend #47721

Open GuilhemFr opened 2 years ago

GuilhemFr commented 2 years ago

Feature description

Print Composer: Adjust the global width of the legend. Feature like the button "Resize to fit contents", add a button "resize to width". I don't want tu add a specific caracter in each layer name to word wrap legend item. The lenght of the legend box has to update to the width. Each legend item name has to be wrap to the width of the legend (pixel or number of characters) qgis_legend_width_ajust_lenght .

Additional context

No response

roya0045 commented 2 years ago

or you could use wordwrap to resize the layer name, though this must be applied to each layer individually.

myxBeni commented 1 year ago

I highly endorse this! To me, it seems the wordwrap does a) not work reliably (https://github.com/qgis/QGIS/issues/51465) b) is cumbersome as it does not allow auto-updating the legend and requires coding (which for some people is a big hurdle).