Results 1 to 3 of 3

Thread: BLOCKING PORTRAIT VIEW

  1. #1

    Default BLOCKING PORTRAIT VIEW

    Hi all,
    I want my application to run only in LANDSCAPE view.How can I block the portrait view?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    I don't believe you can do this. I could be 100% wrong
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Location
    Italy
    Posts
    1,395

    Default

    Quote Originally Posted by deepaknair.g View Post
    Hi all,
    I want my application to run only in LANDSCAPE view.How can I block the portrait view?
    Is your app running on the www or did you wrap it inside a native app?
    If you wrap it inside a native app you can easily achieve that.

    However, you could use a simple trick on web apps:
    You should monitoring the browser orientation change and when it has been detected, you should just get the page body and rotate it back to its original position using the css rule "-webkit-transform".
    For istance:

    Code:
    -webkit-transform: rotate(90)
    I'm not sure if it works because I've never tried but it could be a (not elegant) solution.

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •