display.contentheight reporting in simulator

Hi all, I notice that my display.contentheight reports as 960 whether I run as iphone4 or iphone5 in the simulator. Is this because my config is set at 960 height? Or does the simulator report it incorrectly?

Can anyone shed some light on this?

Depends on the height set in the config and the scaling method.

Would guess you use height = 960 and contentScale = zoomEven

So Corona stretches the 960 px to the hight of an iPhone 5, which means you always have a height of 960px.

yes, I have the scale set to letterbox but what I really would like to do is get the actual device screen height no matter whats in my config. Is this possible?

— edit —

Ok, I just want to say that there is some HUGE community confusion around config.lua, sizing and device dimensions. I have figured it all out (perfectly) but it was not a fun process to have to go through as none of it is documented. I see much written about scaling and trying to write once for a bunch of different devices. This is not the only way to skin the proverbial cat and I dare say its much more confusing to follow. I am inclined to write a tutorial but have to find the time to do so first. cheers.

Hi @Hive,

This topic is documented in this guide:

http://docs.coronalabs.com/guide/basics/configSettings/index.html

And in this video:

http://youtu.be/RwVlzJtQWd8

Both of these are located in Corona University:

http://www.coronalabs.com/resources/tutorials/corona-basics/

Additionally, many developers find the “Ultimate config.lua” useful:

http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/

Best regards,

Brent Sorrentino

Depends on the height set in the config and the scaling method.

Would guess you use height = 960 and contentScale = zoomEven

So Corona stretches the 960 px to the hight of an iPhone 5, which means you always have a height of 960px.

yes, I have the scale set to letterbox but what I really would like to do is get the actual device screen height no matter whats in my config. Is this possible?

— edit —

Ok, I just want to say that there is some HUGE community confusion around config.lua, sizing and device dimensions. I have figured it all out (perfectly) but it was not a fun process to have to go through as none of it is documented. I see much written about scaling and trying to write once for a bunch of different devices. This is not the only way to skin the proverbial cat and I dare say its much more confusing to follow. I am inclined to write a tutorial but have to find the time to do so first. cheers.

Hi @Hive,

This topic is documented in this guide:

http://docs.coronalabs.com/guide/basics/configSettings/index.html

And in this video:

http://youtu.be/RwVlzJtQWd8

Both of these are located in Corona University:

http://www.coronalabs.com/resources/tutorials/corona-basics/

Additionally, many developers find the “Ultimate config.lua” useful:

http://www.coronalabs.com/blog/2012/12/04/the-ultimate-config-lua-file/

Best regards,

Brent Sorrentino