Skip to main content
Question

Bug: Auto layout not working with lines

  • June 13, 2025
  • 1 reply
  • 32 views

Jaro

 

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

1 reply

giliard
  • New Participant
  • June 13, 2025

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.