Smart guides and snapping

The red alignment guides, what they snap to and how to turn snapping off. Canvas and workspace in the DocStudio designer interface.

When you move or resize an element in a fixed region, the designer shows red guide lines and pulls the element to them.

What the guides show

Red guides while a fixed element is dragged

A red line appears when an edge or the center of the moving element lines up with something else:

  • the left edge, right edge or horizontal center,
  • the top edge, bottom edge or vertical center.

Several guides can show at once, for example when an element lines up with its neighbor on the left edge and with the page center at the same time. A guide spans the fixed region so you can see the relationship.

What it snaps to

Target Used for
The edges and center of the fixed region Page-level alignment inside the region
The edges and centers of the other elements in the same region Aligning elements with each other

The moving element is never compared with itself. Elements in other regions and elements without a frame are ignored.

Snap distance

The distance is 6 screen pixels, not millimetres. At 100% that is about 1.6 mm. When you zoom in, 6 pixels cover a smaller distance in the document, so snapping becomes finer, and when you zoom out it becomes coarser. This keeps the feel constant at every zoom.

The position computed from your pointer is always used, so crossing a snap point does not make the element jitter. Positions are rounded to 0.1 mm after snapping.

Turning snapping off

Hold Alt while you drag or resize. The guides disappear and the element follows the pointer exactly. You can also type exact values in the inspector.

Cleanup

Guides disappear as soon as you release the pointer. Pressing Escape during a drag cancels the drag, removes the guides and leaves the document unchanged. A pointer cancel does the same.

While resizing

Only the edges you are moving snap. Dragging the right handle snaps the right edge, a corner handle snaps both of its edges.

Limits

  • Guides work only for elements with a frame, that is, elements inside a fixed region.
  • Spacing and equal-distance guides are not available.
  • The guide lines are drawn over the page by the designer and are never part of the document or the output.