Skip to main content
Question

Autolayout component with heading and paragraph

  • March 13, 2024
  • 1 reply
  • 139 views

Hi,

I have a component with a heading and a paragraph. I need the autolayout of the component to work regardless of the heading being a longer sentence that spans two lines or a sentence that’s short enough to be just one line. What happens rn is that it looks great with two lines, but an instance of the component with only one line creates a too big vertical gap between the heading and the paragraph. I know there’s a super simple solution, but just can’t seem to wrap my head around it.

Thanks in advance!

This topic has been closed for replies.

Oops. Solution was ofc to make the component’s heading in one line in the original component so that the instances of it can then have multiple lines and not the other way around!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings