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

What is Framer? Join the Community
Return to index
Eryk Orłowski
Posted Apr 03 - Read on Facebook

how to pin a layer to right/bottom edge of the canvas? I get some margin I cannot eliminate.

code:

kw = new Layer
width: 200
height: 200

kw.x = Canvas.frame.width-kw.width

thx!

7 Comments

Tes Mat

Try this:

Eryk Orłowski

thx a lot, that was simple :D

Eryk Orłowski

(couldn't find the proper object to refer to)

Eryk Orłowski

how come canvas is not 100% screen, anyway?

Tes Mat

You’re not using a device preset? The Screen = screen of your device (or whole screen when you’re using ’No Device’) and the Canvas is the entire document, so also everything around the device. You only need it when you e.g., want to set a background, like:

Tes Mat

Canvas.backgroundColor = "#28affa"

Eryk Orłowski

Got it, canvas can hv multiple artboards from sketch, thx

Read the entire post on Facebook