Skip to main content

 

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

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.

 


Reply