This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Chris Wang
Posted Jan 10 - Read on Facebook

Can I add adaptive layout behaviors to code-generated layers?


Jacky Lee

you can use layer.x = Align.bottom(offset) to set adaptive layouts.

Aalok Trivedi

along with setting a layer's width/height relative to Screen. So layer.width = Screen.width - 32

Rohan K

Wont you have to run that with a window.onresize event?

Aalok Trivedi

I'd also take a look at this design components module. it uses an awesome constraints module that does what you want. It's not standalone so you'd have to include both module files but its really useful

Read the entire post on Facebook