Is there any native way to lock the orientation?
There is a Screen Orientation API, but unfortunately it doesn't look like it's currently well-supported across browsers. Maybe this will point you in the direction of a solution.
Mozilla's docs for a method specifically called Screen.lockOrientation() is listed here, but again, not well supported.
Thanks Joshua Tucker.Seems hard to create portrait-only prototype
You could always use one of the framer apps? Frameless is one but doesn't have that feature. Or wrap it in a phoneGap app. One trick is also to detect rotation and just present a "portrait mode only" message... Its just a prototype so I'm not sure why you'd need that hard restriction.
You're right. i need a wrapper to lock the viewport
Add this to your home screen... http://mrgan.com/pieguy/ see what he did to exclude portrait.
I worked on some orientation code with Joshua recently that would likely help. :)
Cool. Let me try
Hi Ken Yiu did you ever figure out a way to do this?
Not yet, have u got any clue?