2 Replies Latest reply on Mar 12, 2014 2:17 AM by Bart Fukkink

    Is "real_screen_width" broken?

    Bart Fukkink

      In our application we use some code to detect what kind of device the user is (roughly) using. For this code to work however, we need to get the screen width and height. When updating our application from RhoStudio 2.2 to 4.0 we only see some wierd behaviour getting the property "real_screen_width". This property seems to return the height instead of the width. We have noticed this on the HTC One, Google Nexus 4 and the iPhone 5.

       

      Note: we access the code with the following snippet:

      System.get_property( "real_screen_width" )
      System.get_property( "real_screen_height" )
      

       

       

      Is this a known problem? I could not find any other Launchpad posts about this subject.