1 Reply Latest reply on Oct 26, 2011 4:36 PM by kraikit

    Finding exact screen dimensions of a device in portrait and landscape orientations

    pcoyne1979 Level 1

      Hello, I am creating an iPad app but I also want it to run on other devices. I need to know the screen dimensions in vertical and horizontal orientations as soon as a view is created. On the iPad I get values of Capabilities.screenResolutionX=1280, and  Capabilities.screenResolutionY=800. However, when the device is in portrait orientation the exact screen dimensions are width=768, height=1004. For the landscape orientation it is width=1024, height=748. What is going on exactly? They aren't even the same ratio. I understand the the action bar height might have something to do with it but it is still confusing me.