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

What is Framer? Join the Community
Return to index
Jason Ogle
Posted Sep 11 - Read on Facebook

Hey Framily, is there a way to scale your prototype to support different phone resolutions?

6 Comments

Lee Jungyoung

I usually make wrapper for control that. If your design's width is 640, wrapper.scale = Screen.width/640

Jordan Robert Dobson

Most definitely.

Jordan Robert Dobson

How are you trying to do it? Initial setup or after the fact.

Jordan Robert Dobson

So there is a value for resolution. Utils.devicePixelRatio() that will give you the pixel depth.

So then say @ 1x you want a navbar that is 44px high. You multiply that times the DPR.

Jordan Robert Dobson

Here's a sample of this I shared last night: http://share.framerjs.com/qkwzj2p25vim/

Jeff B. Léonard

Jason Ogle - check this out, not sure if it will help you, but the pieces can fit into your puzzle somewhere... http://goo.gl/P54ptn

Read the entire post on Facebook