Skip to main content

Autolayout should support percentage based widths


Gabi_Gordon

Many people have said the same thing, but I’m here to recommend supporting percentages within auto layout. I’ve seen many people asking for the same thing.

Percentage width auto layout would help us be more efficient. Auto layout “Fill container” is great for sections being sized equally (50/50 or 30/30/30).

When we’re designing content with sections, the sections are generally not the same width as each other to indicate importance.

Myself and many other designers would love to have autolayout support something like this:

  • The main container has the same spacing all the way around
  • Each section takes up a specifid percentage of the container (70% and 30%)
  • When the modal grows and shrinks, those sections maintain their width of 70% and 30%
  Without spacing With spacing
800px wide

 

 

1000px wide

 

 

 

This is what autolayout currently supports

If we use auto layout, each section must be a specified width or the same width as the other sections.  It makes it so we cannot use autolayout on re-usable components like page layouts or dialogues because the content cannot maintain its scale.

Without spacing With spacing

 

 

2 replies

Laurentiu
  • New Member
  • 2 replies
  • February 1, 2025

This is awesome! I think this can be done as MIN-MAX , but with percentages, you would set the autolayout as fill-container , with a min and max width of x% from parent.
 


Coltide
  • New Member
  • 2 replies
  • March 3, 2025

+1


Reply


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