DisplayInfo returns the wrong size of the screen in pixels

In my test application, I found that DisplayInfo returns a wrong size of the screen in pixels. I tested it on the Simulator only, but not on the actual device. Simulator real display size is 768 x 1280, but DisplayInfo returns 864 x 1400.

hand. QML

import bb.cascades 1.4
import bb.device 1.4

Page {
    Container {
        leftPadding: 20
        topPadding: 20
        rightPadding: 20
        bottomPadding: 20

        layout: DockLayout {}

        Label {
            text: displayInfo.pixelSize.width + "x" + displayInfo.pixelSize.height
            horizontalAlignment: HorizontalAlignment.Center
            verticalAlignment: VerticalAlignment.Center

            textStyle {
                base: SystemDefaults.TextStyles.BigText
            }
        }
    }

    attachedObjects: [
        DisplayInfo {
            id: displayInfo
        }
    ]
}

If someone check it on real device?

Reinstall the Simulator is fixed this problem

Tags: BlackBerry Developers

Similar Questions

  • MacBook Pro does not start, the screen is pixelated.

    MacBook Pro (2011) running iOS later.

    Screen went blue, at which time mac was turned off.  Try to be able to save and mac does not start.

    Tried to boot using utilities, but can not access this screen.  (the screen is also all the "pixelated".)

    Looking for ideas before making a trip to the Apple store.

    1 disconnect all devices (Ethernet, USB, external hard drives, mouse)

    2. start in safe mode

    3. go Finder - press Option-Go - ~/Library/ /DiagnosticReports ofnewspapers

    4. find the missing table inception report and post it please

    If your Mac will not turn on - Apple Support

  • Small white spots on the screen (no pixels dead) of RMB

    This week, when I opened my MacBook on the screen, I saw on the white spots screen 12 ". At first, I thought maybe would it be a beat on the screen but a quick wipe down and a thorough inspection of different angles confirmed that it was something else. I closed and turned back RMB. The small bright white spots were persistent, although only perceptible in the middle of a dark background, or when the Sun is reflected on the screen.

    Everyone has the same problem or knows what is the best solution for this problem? I don't have a case at Apple yet, because I am in doubt if Apple repair this under warranty on the other I need to get in touch with my insurance company.

    It reminds me of all the problems with the Retina on the MacBook Pro screens (you can search "Staingate" in Google). If the MacBook is under warranty, you must make a backup of your data and take it to an Apple Store or dealer, so that you can get your MacBook repaired.

  • my text on the LCD display is turn on the side, I need to return the screen

    need to return my screen is sideways

    need to return my screen is sideways

    If the entire screen turned sideway, there are 2 ways to fix...

    1. press the keys Alt Ctrl + set > up/down, left/right arrow keys to "flip" your screen back to normal.
    2. right click on a free space of the office > graphics > Rotation > choose the appropriate degree.
    NOTE: I would like to use #1. I find the #2 method that is difficult to use because I can't control my cursor on the Rotation mode.

    t-4-2

  • How do I return the screen to the original display

    for some reason, my screen went to hoirizontal and I tried to put it back but cannot.  Help

    Hello

    Hold down the Ctrl and alt keys and press the arrow pointing upwards.

    Kind regards

    DP - K

  • DownloadHelper will no longer display with Firefox; How can I return the screen?

    The add-on Video DownloadHelper normally arise in the upper left corner of the opening page of Firefox, in one of the bars _ I don't know the name of the bar. I installed DownloadHelper but nothing showed. How can I get that back?

    I just slide in place. Restart the browser has not changed anything _ I start and close the browser (Firefox) several times a day since I use a form of research. Maybe I did not the icon in the right place. In any case, I can access DownloadHelper of tools _ not as convenient, but achievable. Thanks a lot for all the help.

  • The screen is smaller than the size of the screen. Help!

    I hit a button on an accident (CTRL with Shift or CTRL with something else) and the screen went black. Now, the screen size is much much smaller than the size of the screen. There is a good inch margin 2 right and left. How can I return the screen to normal size (to match the screen)?

    Hi Rhamad,

    Thank you for visiting Windows Vista Microsoft answers forum.

    Your monitor settings have been changed, and you must set its value by default. To set the default settings screen, you must use the buttons near the power of the monitor buttons. You can take the help of the manufacturer of your computer to do or if any manual was provided with the computer then you can refer to that as well.

    You also try to open graphics settings and change the display settings.

    To change the display settings, follow the steps below:

    1. the right in the empty space on the desktop and select Properties.

    2. click on the settings tab.

    3. click on advanced.

    4. click on the tab on your computer graphics card.

    5. you will need to make changes in the advanced settings under display settings.

    Alternatively, you can perform a system restore to a date when the display settings were normal.

    To restore the operating system to an earlier point in time, follow these steps:

    1. Click Start, type system restore in the search box, and then click System Restore in the list programs.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue.

    2. in the System Restore dialog box, click on choose a different restore point and then click Next.

    3. in the list of restore points, click a restore point created before you started having the problem, and then click Next.

    4. click on finish.

    You can visit the link to the KB Article for reference:
    http://support.Microsoft.com/kb/936212

    Please let us know if it helps.

    Thank you and best regards,
    David

  • How to determine the size of the screen

    Is there a way in OS Version 4.3.0 to determine when executing what the resolution of the screen of the device on which the application is running?

    Thanks for the help.

    Take a look at the net.rim.device.api.ui.Graphics class

    To determine the size of the screen use the static methods:

    Graphics.getScreenWidth ();

    Graphics.getScreenHeight ();

    To determine the resolution of the screen in pixels per meter (PPM), use the following static methods:

    Graphics.getScreenHorizontalResolution ();

    Graphics.getScreenVerticalResolution ();

  • How to turn the screen 180 degrees?

    How to return the screen to normal autour.  Right now, everything is upside down.  Some how the screen flip when I was using the mouse near the bottom of the screen and can of it a key @ simultaneously.  Help, please

    Tuesday, February 14, 2012 14:59:24 + 0000, ANTHONYPINO wrote:

    How to return the screen to normal autour.  Right now, everything is upside down.  Some how the screen flip when I was using the mouse near the bottom of the screen and can of it a key @ simultaneously.  Help, please

    The ability to rotate the screen image is a characteristic of your video
    card, to help work with instructors who turn to the portrait
    orientation. Almost certainly you accidentally pressed Ctrl-Alt, and
    an arrow key.
    Rotate using these keys.

    Ken Blake, Microsoft MVP

  • I have a dell inspiron 1525, the screen goes black every few minutes. I have to close the lid and open it to make the screen come back. any ideas?

    Screen goes black every few minutes. have to close and open cover return the screen.

    Hello

    1. on what application is the problem occur?
    2. the hard drive spin when your screen goes black?

    I suggest that you follow these steps and check if the problem persists.

    Step 1:

    I suggest that you update your display drivers and check if the problem persists.

    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly

    Step 2:

     
    Step 3:
     
    If your computer works fine in safe mode, then there must be a third party software that is causing the problem to occur, this is why I suggest you put your computer in a clean boot state.
     
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: Put your computer in normal mode (step 7).
  • FontHeight.getHeights () returns the heights in what units?

    Anyone know?

    When I get the heights for any font, they do seem to match what is displayed to the screen/keyboard for this font.

    Thank you george

    The net.rim.device.api.ui.Font getHeight() method returns the height in pixels.  Here a detailed explanation of the fonts in the JavaDocs for police. There is also a method getHeight (int arg0) on the police, but it is not documented and therefore not supported. It can return the height in the indicated units similar to the method to derive (int, int height, int units style).

  • While working in the Live moving photos to a new folder Photo Gallery, I changed accidentally something that caused the list of folders to the left of the screen to disappear

    Also not remain the main toolbar that appears when you click HOME. The entire screen is taken up with the pictures, and I can't continue what has been a simple exercise of copy and paste into a new folder as it is no longer listed. Nothing I've tried will return the screen that I served.

    Also not remain the main toolbar that appears when you click HOME. The entire screen is taken up with the pictures, and I can't continue what has been a simple exercise of copy and paste into a new folder as it is no longer listed. Nothing I've tried will return the screen that I served.

    Hello

    Move the cursor of the mouse on the left side of the window. You will see a line from the top to the bottom of the screen. There is a blue arrow in the center of the line. You can click on the blue arrow or drag the line to the right to view the Navigation pane with files.

    For the Ribbon toolbar, look on the left side of the title bar where it shows the Windows Photo Gallery. Click on the arrow down on the Quick Access toolbar and remove the check mark to reduce to a minimum the Ribbon option.

    Concerning

  • How to avoid the screen of the user of the switch after the screen saver

    HP Pavilion HPE, model: h8 - 1280t, Intel i7. Win 7 Home Edition - 64 bit - nine

    Suite of screen saver, computer returns to the screen 'change user '.  There is only 1 user and I don't want to go to this screen since it significantly slows the recognition and the function to return.  How can I return the screen saver directly on the screen, I was working on bypassing the screen of the user of the switch first?

    --

    Seahorse2

    Hello

    Open windows control panel, open personalization, click on the link of the screensaver at the bottom right and in the next window, Remove the tick in the box next to "in»the logon screen curriculum vitae  Click on apply, then Ok to save the setting.

    Kind regards

    DP - K

  • The screen of my email got really large fonts and I cannot understand how it return to normal. Must be a Firefox thing because when I open it in Explorer it is a normal size.

    While typing on the screen of my email (Comcast), he just started growing and is now quite large fonts. I can't understand how to go back to normal size.

    Hello

    Please try pressing Ctrl + 0 (zero). This resets the zoom. You can also see (Alt + V) > Zoom > reset.

    Using Zoom

    ...............................................................................................................................

    Useful links:

    Everything on tools > Options

    Beyond the tools > Options - about: config

    Subject: config entries

    Information page (Alt + T) tools > Page Info, right-click > view Page information

    Keyboard shortcuts

    View without Plugins

    Files & Firefox profile folder

    Firefox commands

    Basic troubleshooting

    After the upgrade

    Safe mode

    Extensions of the issues

    Troubleshooting Extensions and themes

    Troubleshooting Plugins

    Test Plugins

  • My facebook page is really small on the screen, it has shrunk, he cannot return to the view

    my Facebook page has decreased, it is not full screen and you can not read. It's as if the entire page is half of my screen and is so tiny how I change it back to the view?

    Hi TraceyLynn,

    You can try using the Zoom. This will decrease the size of everything on the page. You can try to hit CTRL and + a few times to try it. CTRL and 0 it will return to normal size.

    If this isn't what you're looking for, you, you might want to look at some of the options in Firefox Accessibility features - make Firefox and web content work for all users . There is much good information in this article.

    Hope this helps!

Maybe you are looking for

  • "Bluetooth is not ready", after a new installation on Qosmio X 770

    Hello I have a Qosmio x 770 and I was pretty stuped to uninstall the bluetooth drivers and then re install.When I re installed them I installed Atheros filter first then the bluetooth stack and now I get the error whenever I try to add a new connecti

  • No scanning

    If someone has already asked this question, I apologize for posting again this question. I use HP Photosmart B209a-m with my mac mini (Mac OS X ver 10.6.8).) Since a few days, when I try to scan, it start giving me the error message below and do not

  • IIS problem

    Hello I want that non admin users fully administer IIS that is to say, they should be able to create sites and virtual directories, etc...

  • Windows Vista Home Basic - where can I download Snipping Tool safely?

    My previous PC was a Windows Vista Home Basic and it came with the capture tool.  I bought this new, but it did not come with the Snipping Tool.  I need this program for the things I've done.  Where can I download it safely?

  • Adding host snmp-server error

    I install new software to version 8.03 running ASA5510 and using ASDM-603. The ASDM to add host computers using snmp-server, most of the ip addresses in the subnet works very well. However, I have two addresses that always display an error "conflict