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

What is Framer? Join the Community
Return to index
Daan van Klinken
Posted Feb 24 - Read on Facebook

Is it possible to use the Offset method in FramerJS to determine the absolute position of a nested view?

If yes: how? I can’t get it to work.
If no: what’s the alternative?

2 Comments

Daan van Klinken

I circumvented Offset by adding the position of the parent to the position of the child.

Johannes Eckert

That's how I would do it to. I nest all my views not only with the superView property but also as an object in JavaScript, so I can also make guesses from the names.
view.childview.childview = new View ({});
You probably new that already, Daan van Klinken ;-)

Read the entire post on Facebook