Skip to main content

Apply min and max dimensions to non-variant components


Eli_Crow

I have components that are intended to be used inside AutoLayouts, but the component itself is not kept inside an AutoLayout. I would expect to be able to set the min and max dimensions so the instances behave as expected inside AutoLayouts. This doesn’t appear to be possible for components that are not a part of a component set. This lack is particularly noticeable when using the new wrap mode.

Workaround
I can create a component set with only one variant, apply AutoLayout to the component set, and then set the min and max dimensions on the variant. Instances then use the min and max dimensions, but I’d rather not keep single-variant components in a component set.

This topic has been closed for comments

4 replies

JackieChui
Figmate
  • Figmate
  • 28 replies
  • June 23, 2023

Currently min/max can only be added to auto layout frames or children of auto layout frames (component or not). I’m curious what your use case is for applying min/max on non-auto layout components.


Eli_Crow
  • Author
  • 9 replies
  • June 23, 2023

I have components that are intended to be used inside AutoLayouts, but the component itself is not kept inside an AutoLayout. I should still be able to set the min and max dimensions so the instances behave as expected when inside autolayouts. This is especially noticeable when using the new wrap mode.


JackieChui
Figmate
  • Figmate
  • 28 replies
  • June 25, 2023

Gotcha. This is not possible for now, so I’d suggest adding auto layout to these main components (e.g. make Item Preview a vertical stack) to enable min/max controls.


  • 0 replies
  • July 23, 2023

This topic was automatically closed after 30 days. New replies are no longer allowed.


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