Config Problem

Hello!

I have this config:

[lua]local aspectRatio = display.pixelHeight / display.pixelWidth

application = {
   content = {
       width = aspectRatio > 1.5 and 320 or math.ceil( 480 / aspectRatio ),
       height = aspectRatio < 1.5 and 480 or math.ceil( 320 * aspectRatio ),
       scale = “letterBox”,
       fps = 60,

       imageSuffix = {
           ["@2x"] = 1.5,
           ["@4x"] = 3.0,
       },
   },
}[/lua]

I was doing tests in relation to display.contentWidth and display.contentHeight and until today had never used events like " orientation" . Yesterday I started using ( " orientation" and "resize " ) and while testing the iPad was okay . The rotation was perfect and everything ran beautifully until I tested the Nexus 7 . My ( 0 , 0 ) changed … If I started application " portrait " and swirled to " landscape " the (0 , 0) was not (0, 0), but in " portrait " continued to be (0, 0), and vice versa. That is, what seems to me is that the Corona is running config.lua once and then when the orientation changes , only there is an exchange of values ​​between display.contentWidth and display.contentHeight . In the case of the nexus , as there is a navigation bar that no longer seem right . Devieria run a new scan. Let’s see: I start the application in " portrait " ( 320x482 ) , when the squeegee screen display.contentWidth instead of 482 , should move to 557 , since it is no longer affected by the navigation bar, but remains 482 . And if you start the application in " landscape " my display.contentWidth is 557 , and running display.contentHeight is 557 , while it should be 482 , because it is already affected by the bar . Am I right?

Thanks,

Tiago Eirinha