Skip to main content
Jaro
New Member
Jun 13, 2025 9:52 AM UTC
Question

Bug: Auto layout not working with lines

 

Strange things happening when using lines in autolayout

  1. if starting a auto-layouted-frame with lines, nothing is correctly aligned
  2. if starting with rectangles and then adding a line, the rectangles work, but line still has issues
This topic has been closed for replies.

1 reply

giliard
New Participant
Jun 13, 2025 12:50 PM UTC

Lines are single "strokes" (borders), and they don't have perfect dimensions set. As you can see in the right panel, the height for the line is 0 (zero). That's why it doesn't feel right in an auto-layout.

To make them work well with auto-layout, you will need to convert them to regular shapes (like rectangles) using the "Outline stroke" option.