Figma Support Forum

Hug content in auto-layout frame via plugin API?

Hi,

Is it possible to set the height of a child frame inside a vertical auto-layout frame to “Hug Content”? It seems setting layoutGrow via plugin is equivalent to setting the Resizing for the primary axis in GUI:
_title.layoutGrow = 0; // "fixed height" _title.layoutGrow = 1; // "fill container"

Thanks!

Geng

Thanks a lot, Gleb! I wonder how I missed it now :sunglasses: