Languages

Menu
Sites
Language
How to rotate content to match device orientation?

When I'm rotating the Tozen reference device the app content doesn't rotate along.

How can I rotate HTML page to match device orientation?

I know how to listen to orientation changes, but it doesn't help.

 

Tizen Browser app reflects device orientation properly.

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

5 Replies
Lakshmi Grandhi
Hi, There is sample for html5 but not for Tizen framework. https://developer.tizen.org/help/topic/org.tizen.web.appprogramming/html/tutorials/w3c_tutorial/device_tutorial/screen_orientation_tutorial.htm
Pavel Repkin
Dear Lakshmi, the sample is not an answer to my question. The article explains how to listen to orientation state changes, but it doesn't explain how to force the HTML page rotation. I was expecting the rotation to occur automatically in the app. But it does not happen.
Eugene B
Pavel, try this code:
Larry Aasen

This worked for me as well. Thanks for the tip.

Pavel Repkin
Eugene, thank you so much - that's the answer - it works now!