Skip to main content

When I draw a straight line, the coordinate of the line remains on the edge even when i set the stroke position to centre. This make it difficult to align perfectly. See this example where I am making a cross. Alignment is imperfect even when I use the align tools. You can see the bounding box of the line is on the edge rather than the centre. Can I fix this?

Object aligns to the selection bounding box rather than centre of line. This is the result of align both lines with the position align options. I’m trying to make a perfect cross, this is the result.

 

I’m also having this issue. Would love to find a solution.


If these lines are going to be merged together into a shape, you can “flatten” the lines and turn it into a single vector and the lines will be centered. Outside of that, I haven’t found another solution.  


I found a new solution: just go into point mode (double click the line) and you can align it properly. 


Nice! I wonder why it behaves like that? Thanks for considering this problem.


Almost (but not entirely) certain it did not behave this way until recently and is almost certainly a bug with the LINE tool specifically. It is not apparent when applying a stroke to a shape (where inside, outside, and center work as expected). 

It’s maddening, and I suspect is related to how they implemented the new variable stroke/drawing stuff.

As an example, I’m trying to make a simple node-connected timeline (see attached) with autolayout. Now this is effectively impossible unless I either flatten each line or make them as rectangles, whereas before I could dynamically modify the design as I go.


To follow up: If you add an arrow or end cap to either end of a line, the center-out width adjustment works. It’s just broken by default until you modify something


Reply