To adapt to the screen orientation by using javascript (for playbook)

Hi all

I know that the subject of the screen orientation has been crossed many times already, but I've searched and searched in the webworks put on an answer and can't find it.

My application is made for the landscape. I have 2 options. ((1) lock app in landscape which I think still can be done using webworks (but please correct me if I'm worng) or 2) to scale the app for the portrait.

Because to my knowledge 1) cannot be done, I'll focus on 2). Has anyone seen or written a javascript/css script that checks if the user holds the tablet in landscape or portrait and adapt to the 2 on-the-fly switching of b/w? My app is made for 1024 x 600. I know it can evolve using CSS 0.6 starting to adapt to the screen, but I don't know how to check and then re - evolve afterwards with javascript.

Any help, please and thank you.

In fact, you can lock in landscape orientation with

your config.Xml file. Just remove the space after "rim:" because I added it to prevent the Bulletin Board to return as , haha.

Tags: BlackBerry Developers

Similar Questions

  • Mobile watch G3 using and using firefox. The fonts are not reinvest/wraping to adapt to the screen while increasing fonts.

    I use hand G3 mobile with android in browser firefox web. Fonts are reinvesting / wraping to adapt to the screen while increasing the size of the font. The same functionality was available when I am using mobile watch E3. But I think that's not mobile dependent feature. I'm missing a few settings.

    reflow on zooming option can be disabled. Try to toggle this option.

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page.
    3. Search browser.zoom.reflowonzoom
  • I am unable to adapt both the screen saver is activated

    I am unable to adapt both the screen saver is activated, I put the link, but it acts as if it was before progrmmed?

    Also is there a way to avoid to connect every time?

    The problem with these parameters is that they overlap.  The screen saver setting is perhaps not the one place to look: you should also watch your 'screen time out", as well as waiting times"lock screen ".  In addition, it could be the energy saving sleep timer.  From the point of view of the user, they all look the same (the screen turns off), but to get the desired exact situation, you may need to check up to 4 places.

    1. Right-click on the desktop > personalize > screen saver
      Even if you do not use a screensaver, this timer value is used to lock the screen.  The value 'none' and make sure that the check box is disabled, it does not require a password.
    2. Power options > Change when turn off the display
      Also look at the "require a password on wakeup" option here
    3. Power options > change when the computer sleeps
      Also look at the "require a password on wakeup" option here
    4. Application settings > lock screen settings
  • How to force the screen sharing to use Ethernet 2 port?

    Hello

    I have 3 MacPros connected in my studio. MP1 is the master and I use screen apart to see MP2 and MP3. Now, I bought a very quick switch to connect these 3 between them via the Ethernet Port 2 MP1 and at the same time have the MP1 connected to the internet and printers, servers and so on with 1 Port Ethernet. But this is not possible, because the screen sharing will prefer to use the port where the internet/router is connected.

    When ONLY Ethernet Port 2 is active, screen sharing using this port and it works perfectly, but when turn on again once, 1 Port Ethernet 2 remote Mac loses connection.

    Is there a way to force the screen sharing to use Port Ethernet 2?

    It would be useful:

    NC-port-number-on-Mac-OS-x http://superuser.com/questions/148095/How-to-change-the-default-Screen-Sharing-v

  • 21.5 inches a month old iMac had a pink line down the screen-oriented...

    21.5 inches a month old iMac had a pink line down the screen-oriented...

    Return it to the store for assessment.   It is in the warranty period of 12 months, so it could be replaced if you insist that you are in the United Kingdom.   Otherwise it is covered by your warranty and is either replaced or repaired according to the countries.

  • Windows xp Home Edition running, at the center of the screen it is large icon for media player. in all programs used. Cannot delete, removing appears again at startup. any suggestions?

    Windows xp Home Edition running, at the center of the screen it is large icon for media player. in all programs used.  Cannot delete, removing appears again at startup. any suggestions?

    Hi louMIRANTI,

    ·         Since when are you facing this problem?

    ·         Remember to make changes?

    ·         This problem occurs on other user accounts?

    ·         How to remove the icon?

    Method 1: Check the question on other user accounts and see if the problem exists.

    Method 2: Let's try to run a scan online for any infection on the computer.

    Malicious software removal tool | Protect your computer

  • If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages b

    If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages by using Outlook.

    See this article.

    http://support.Mozilla.com/en-us/KB/changing+the+e-mail+program+used+by+Firefox

  • How to get the Blackberry ID using javascript for Webworks App?

    Hi all

    I have developed a web application using Blackberry webworks SDK and emulator Ripple... Here, I need to get the Blackberry device ID using javascript... Please me... Thanks in advance...

    With respect,

    Marimuthu_P

    HM... There is a sample to get the PIN with javascript.

    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.identity.html#.UUID

  • "Apps are not work - this application cannot open, the screen resolution is too low for this app run to change your screen resolution.

    Origignal title: Apps does not work.

    I got Windows 7 Starter I have upgraded to Windows 8 Pro on my mini HP laptop, but when I select no matter what application I get the following message

    "This application cannot open.

    The screen resolution is too low for this app run

    Change your screen resolution.

    and when I press 'Edit your screen resolution' I found the screen resolution is the maximum 1024 x 600.

    Under him, I found the following warning "" your resolution is less than 1024 x 768 elements could not fit and applications could not open

    Please advise?

    I know this is an old thread, but I came across it looking for a solution to the same problem. It turns out that my problem has a cause simple and simple solution. I had accidentally pressed the "multiple displays" function key on my keyboard (F4 on my HP Envy) and therefore affect my screen out of two monitors without realizing it. I started getting the error "the screen resolution is too low for this application to run", came here, tried to change my resolution screen and then realized what I had done. Once I changed the key function to the PC only, the problem has been resolved.

  • I deleted the creative cloud of the trial and the DM Dream weaver of the trial, after only using it for about 6 days, I tried to re-download the two tests and nothing happens. Anyone know how I can get this done. Please advise, your help will be greatly a

    Hello

    I deleted the creative cloud of the trial and the DM Dream weaver of the trial, after only using it for about 6 days, I tried to re-download the two tests and nothing happens. Anyone know how I can get this done. Please advise, your help will be greatly appreciated.

    Hello

    Also see also software Adobe to trial has expired at the beginning

    Hope that helps!

    Kind regards

    Sheena

  • Portege M700 will not change the screen orientation

    I installed the driver for the webcam for the M700, and every time I install it, I get the same error message:

    "Open Webcam driver fail - please restart camera or computer."

    I reinstalled the drivers of many times, and it still does not work.

    Therefore, I tried the msconfig method, disabled all the startup process and then reactivated their.

    The webcam shows the same error message, and now the screen will not change orientation when I rotate the screen.

    You try to use Windows XP Home edition or what? Generally, each laptop comes with preinstalled and configured operating system.

  • How to resize the screen display to use only half of the screen

    in order to write the information to a website in a MS word document, I want to put the site to display browser so the document MS word on the screen at the same time (each 1/2 of the screen (left and right view). How can I do this? I am technically challenged so tell me in the jargon of the primary school

    I can't test this on Windows 10, but...

    On Windows 7, if you hold down the keyboard Windows key, then press the right arrow key, the currently active window will change its form. By example, if the window is maximized it will change occupying half right side of the screen. Hold the Windows key and pressing the arrow key right to scroll to the right, left and restored/resizable. To maximize, use the up arrow key.

    I hope you can use this keyboard shortcut hidden to set each application to the half of the screen easily without having to manually extendable/retractable and move windows. And it's a cool thing that you can share with other people.

  • How can I completely disable tabs because tabs are is no longer being on the bottom of the surface of the screen. tabs are used not long ago and will not be used.

    Because you removed the possibility of lowering the tabs at the bottom of the upper part where they used to be that the tabs are no longer useful and takes place how to remove completely because they now take just a space of the screen. It takes just as much time to click Open Windows in the taskbar, as it does to use the tabs at the top of the screen so now I'll settle for all open in a new window and remove the wedges. I won't use an add on for this.

    Of course, I have read your message and displayed an additional option if the modules were not suitable for you.

    If you don't want to install an add-on, put the style in the userChrome.css file and restart Firefox. You can use the stylish add-on instead, if you have installed.

    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    /* The above line should appear only once in the file */
    
    #TabsToolbar { -moz-box-ordinal-group: 99 !important }
  • Tecra M9 - lack of icons of the screen when you use Fn + F5

    Tecra M9 XP Pro SP2

    Accidentally, I uninstalled the Hotkey utility for display devices and have since been unable to use Fn + F5.

    I have re-directed tfnf5.exe which does not seem to do anything, just a DOS window emerged very briefly. I can now switch between the views OK, but do not see all the icons on the screen - I should be able to tab between the four options. How to return these icons back?

    Thank you

    Buddy just a question.
    Why you visit n t page European driver Toshiba, Tecra M9 choose and download the Hotkey utilities for display and devices of the common Modules for Win XP?

    These tools are available and after the installation of these two tools the keys FN and icons should reappear

  • Flash cards are not visible on the screen when I use the FN key

    When I press the "FN" key is more the meaning of each F1 to F9 keys on the screen.
    I restored my system, the screen was beautiful, but disappeared again.

    Where is the problem?

    > I restored my system, the screen was beautiful, but disappeared again.
    Have you changed anything in the autostart options?

    Please try to restart flash cards using this option in the start menu > all programs > Toshiba > utilities > restart Flash Cards.

    Always the same problem?

Maybe you are looking for

  • No sound after installing windows 10 MBP 2012

    Hello world Here's what I did. I have MBP 2012 with El Capitan on it. I installed windows on this 10. Here are the steps I followed. Plist file modified to allow the creation of iso windows 10 on USB for my MBP (PreUSBBoot USBBoot and 2 other usual c

  • parental control on LAN

    I can't using 2 laptops connected with a teenage stepdaughter. I find all the locks 'Parental', authority, or restrictions are toured. It's okay, but it interferes with my work phone & social networking usage in my private life. I suggested to get my

  • HP M9040N TV TUNER/VIDEO GRAPHICS CARD PROBLEM

  • sometimes lose keyboard ps2 until restart

    Windows vista ultimate, pc, keyboard ps2 belkin Sometimes after starting computer, I noticed the keyboard does not work & I have to restart the computer. It always comes back after restart. But if I don't notice it right away, it can be a pain to hav

  • Vista slow system and displaying the message "Windows has a problem.

    I feel like a complete NEWB. I'm going on my computer today after two days. My computer starts slowly. More slowly than usual. The first thing I see is this grey screen with a white cursor that is HUGE on this subject. At the same time, I see that it