Skip to main content
Question

Responsive behaviour when you have text blocks of different widths

  • May 10, 2024
  • 1 reply
  • 98 views

Hello, I’ve got 2 text blocks of differing widths that I’ve added left and right constraints to and attached them to the grid so they scale nicely when the frame is resized.

Where I am trying to get to is that behaviour (example here: https://youtu.be/LSLP5VAUnUI ) but inside a container. The container would vertically resize to fit the text in when horizontally resized.

If the text blocks were all the same width this would be a 2-second job with auto layout. I’m going around in circles trying to work out how to do it. Any help would be hugely appreciated. Cheers.

This topic has been closed for comments

1 reply

Nate_G
  • Power Member
  • 180 replies
  • May 10, 2024

Yes, I didn’t see an easy way with auto-layout — I was looking at using min-max widths, but didn’t work well. So one option (which isn’t automatic) is to click “resize to fit” after adjusting the width of that section.


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