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

What is Framer? Join the Community
Return to index
Regimantas Vegele
Posted Oct 25 - Read on Facebook

Is there a way for framer(studio) to know it's main canvas position relative the whole of the display screen? So let's say your monitor left top is (0, 0) the window in which framer(studio) main canvas is at (123, 456). It doesn't even have to be canvas. It can be the framer(studio) app position on screen. I can get the app's size with window.document.width and the canvas's Canvas.width, but knowing where they are relative to the overall screen is still a mystery. Perhaps this is more of a javascript question than framer? window.screen.top doesn't seem to return anything

2 Comments

Krijn Rijshouwer

Hmm, that's interesting. You can get the window's position using window.screenY or window.screenX but I see this isn't returning a correct value.

I wouldn't be surprised if Jonas Treub has a trick up his sleeve to get this done.

Regimantas Vegele

Ping Jonas Treub on this ;)

Read the entire post on Facebook