Bug report #8943
Problems with "Snap to alignments" in Map Composer
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Windows 7||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17610|
When "Snap to alignments" is enabled, and I move an element that has a frame to the edge of the page, the snapping will position the frame off the page, so that it doesn't show up when printed, or exported as an image. I have to turn off "Snap ..." and move the element manually to keep all of the frame on the page.
#1 Updated by Nyall Dawson about 7 years ago
- File test.png added
- Status changed from Open to Feedback
Do you mean that only half of the frame's border is cut off? (ie, the part of that border which falls outside of the page bounds? - see attached image).
If so, I'd argue that this is expected behaviour. I get the same behaviour in Illustrator and Inkscape. Possibly what could/should be added is a way of exporting an entire composition, including elements which fall outside of the page bounds. Thoughts?
#2 Updated by Leszek Pawlowicz about 7 years ago
I would think that if you specify a frame as a part of an object, and you snap the object to an edge or another object, that all parts of the object should still appear. Otherwise, the object isn't truly snapping to an edge, it's going over and overlapping the edge, and that's not usually desirable.
#3 Updated by Mathieu Pellerin - nIRV about 7 years ago
- File snap_to_items-no_thickness_involved.png added
- File snap_to_page_border-thickness_involved.png added
On my Windows, using latest QGIS master build, here's the current behavior:
- When snapping to border, the frame thickness of the item being dragged is taken into account (see snap_to_page_border-thickness_involved.png); while
- When snapping to another item on the composer sheet, the frame thickness of neither the item being dragged or the other item its being snapped to is taken into account (see snap_to_items-no_thickness_involved.png)
IMO, it's a an acceptable default behavior. That said, Inkscape does seem to take into consideration the border thickness when aligning / snapping items together along edges. Is there a need for a configuration checkbox here? Or should Inkscape behavior (considering thickness at all times) but applied?
#4 Updated by Mathieu Pellerin - nIRV about 7 years ago
actually the more I think about it the more I believe frame thickness should be taken into account on all snapping scenarios.
Check the item on item snapping screenshot, you'll clearly see the item dragged snaps at end of frame thickness while item edge used for snapping ignores thickness.