how to locate app view just below status bar?

Hi corona friends ,

i am trying to make my app view to start below the statusbar of the device but i noticed there is a small gap between the app and status bar when i run in the device but in simulator it works fine… 

here is my config.lua file 

[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 = 30,

      imageSuffix = {

         ["@2x"] = 1.5,

         ["@4x"] = 3.0,

      },

   },

}

[/lua]

the file to view the top bar in my app is the following

[lua]

display.setDefault( “anchorX”, 0 )

display.setDefault( “anchorY”, 0)

local title = display.newImage( “images/top.png”,0, 0)

 title.y =display.statusBarHeight

[/lua]

any clue why the top image comes little below statusbar.

http://postimg.org/image/t41i6uknz/

thx

Abdul

Probably because of the dynamic scaling, using math.ceil could introduce enough of an inaccuracy that wouldn’t show in a normal screen size. 

aha , and how can overcome this issue ?

Any help in this topic team .

display.topStatusBarContentHeight

Probably because of the dynamic scaling, using math.ceil could introduce enough of an inaccuracy that wouldn’t show in a normal screen size. 

aha , and how can overcome this issue ?

Any help in this topic team .

display.topStatusBarContentHeight