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.35k stars 2.98k forks source link

Rotated layout Items issue #28683

Open qgib opened 5 years ago

qgib commented 5 years ago

Author Name: Raymond Nijssen (@raymondnijssen) Original Redmine Issue: 20864 Affected QGIS version: 3.4.2 Redmine category:map_composer/printing


I'm experiencing some strange behavior while working with rotated labels in a layout.

I add a label item on my layout like this:

x: 100 y: 100 width: 30 height: 12 refPoint: center-left

When I rotate it 270 degrees, it rotates around the center, ending up at x: 115, y: 115. I would expect it to rotate around the center-left reference point.

Now I want to display a longer text string, so I extent the label box length a bit (in this rotated state, I drag the top of my label a bit upwards). After releasing my mouse the entire label moves further left and downwards on my layout.

Exact same behaviour for picture items, so I guess it is a general QgsLayoutItem thing.

Not sure how this is meant to be, but this feels not very logical to me.

This could be related to #27809

qgib commented 5 years ago

Author Name: Jürgen Fischer (@jef-n)


I add a label item on my layout like this:

x: 100 y: 100 width: 30 height: 12 refPoint: center-left

When I rotate it 270 degrees, it rotates around the center, ending up at x: 115, y: 115. I would expect it to rotate around the center-left reference point.

Now I want to display a longer text string, so I extent the label box length a bit (in this rotated state, I drag the top of my label a bit upwards). After releasing my mouse the entire label moves further left and downwards on my layout.

Exact same behaviour for picture items, so I guess it is a general QgsLayoutItem thing.

Not sure how this is meant to be, but this feels not very logical to me.

This could be related to: https://issues.qgis.org/issues/19987 to I'm experiencing some strange behavior while working with rotated labels in a layout.

I add a label item on my layout like this:

x: 100 y: 100 width: 30 height: 12 refPoint: center-left

When I rotate it 270 degrees, it rotates around the center, ending up at x: 115, y: 115. I would expect it to rotate around the center-left reference point.

Now I want to display a longer text string, so I extent the label box length a bit (in this rotated state, I drag the top of my label a bit upwards). After releasing my mouse the entire label moves further left and downwards on my layout.

Exact same behaviour for picture items, so I guess it is a general QgsLayoutItem thing.

Not sure how this is meant to be, but this feels not very logical to me.

This could be related to #27809

Pedro-Murteira commented 2 years ago

I can still replicate this exact behaviour on QGIS 3.16.14 and 3.22.1.