Solved: How to set view port height in prototype mode (like in Adobe XD)

Introduction:

I saw some people asking how to set the view port height for a prototype in Figma, that allows full screen view and vertical scrolling. (This is the prototype feature Adobe XD has.) Figma provides the option to set the device, but that’s not really helpful for web when you want to design for your specific screen size and view it, or just have the prototype adjust to your screen size.

The problem is when you stretch out the frame vertically, you can’t have a full screen view with vertical scrolling in prototype mode. The prototype will either show the entire page at once, or have an awkward margin cropping.

Solution / Workaround:

When you’re ready to view the page, you have to input the original height of the frame before activating the prototype.

  1. You do this by clicking on the frame, then in the right panel set the “x” height of the frame to its original value. You can have the content clipped or not clipped, it doesn’t matter.

For example, if you’re using a 1920x1080 frame, after building out the page the frame might be something like 1920x8000, because you stretched it out. You need to set it back to it’s original size.

  1. Once you’ve done that, select prototype mode and enable vertical scrolling.

Screenshot 2023-11-13 at 11.00.16 AM

  1. Set to fill screen.

Screenshot 2023-11-13 at 11.23.01 AM

  1. Make sure that you’re in full screen mode. If you’re using the Figma desktop app, then the app itself needs to be in full screen mode.

And that’s it. Happy prototyping.

2 Likes

However, this approach makes the file less convenient for designing then? If I want to have the same screens for both prototyping and design, it means that I would have a lot of interface out of the frame in design mode. It’s not that convenient for keeping the design, isn’t it? Is there a way to conveniently have the file for prototyping and for the designing?

  1. You can have the same frame (screen) for both design and prototyping; you just have to change the height of the frame to it’s original size for prototype, then stretch it out to whatever size you want when designing. It’s a little inconvenient, but only a couple clicks to change between the two.

  2. This is the way to have the frame for both prototyping and design. I’m not aware of another way. Hopefully, Figma will add that as a feature in the future.