Locking orientation for a Chrome app

305 views
Skip to first unread message

Kevin MacDonald

unread,
Aug 24, 2015, 2:38:31 PM8/24/15
to Chromium Apps
I am looking for a way to lock the orientation of a Chrome app. I am finding this desirable when our app is run a Windows tablet (such as an HP Elite Pad). Our app is only designed to be run in landscape and does not render properly when oriented in portrait. As far as I can tell the windows.screen.lockOrientation() API is not supported by Chrome. 

Any ideas?

Thanks

PhistucK

unread,
Aug 24, 2015, 3:50:26 PM8/24/15
to Kevin MacDonald, Chromium Apps
You mean window.screen.orientation.lock("landscape")? It is supported, though I am not sure it is supported in all of the devices and operating systems. The intent to ship thread gave the impression that it is in development for Windows (and already supported for Android) and that was a year ago. I would be a bit surprised if it ended up not being supported for Windows, but stuff happens.

Looks like the support for Windows 8.1 is not implemented yet. :(


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Reply all
Reply to author
Forward
0 new messages