Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to restrict a portrait view if I'm building a landscape course?

New Here ,
Apr 07, 2016 Apr 07, 2016

Is there any script needed because I just need learners to retain a landscape view just like any app games (e.g. Clash of Clans) where you can only view the game in landscape mode.

642
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 07, 2016 Apr 07, 2016

Why build it in responsive then?  Unless you have a crying need to have people view the content on a mobile phone, you are probably better off just to use normal project HTML5.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 07, 2016 Apr 07, 2016

It is because client wants it to be responsive and client wants it all landscape I'm just wondering if there is any solutions. I also want to know how or can I restrict learner to rotate his tablet or mobile into portrait view?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Apr 07, 2016 Apr 07, 2016

If you are publishing it as an app, you can restrict it from the config.xml file.

Sreekanth

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 07, 2016 Apr 07, 2016

Thanks Sreekanth but it will be uploaded to scorm so I can't publish it as an app. I just read about an article in stackoverflow is this possible? http://stackoverflow.com/questions/10975387/mobile-site-force-landscape-only-no-auto-rotate

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 03, 2025 Mar 03, 2025
LATEST

If your course is meant for mobile users, consider why you’re forcing landscape mode—most learners are comfortable with portrait. Instead of restricting orientation, design a responsive layout that works well in both views for better accessibility.

RGB_Maestro
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources