CoronaSDK 2013.1144 | Released: 19 Jun 2013, 10:41am | What's New | Download Now
These docs are *very* out of date.
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
object.contentHeight
Description:
The height of the object in stage coordindates.
This is similar to object.height except it's value is affected by Y-scaling and rotation.
This is equivalent to object.stageHeight, which has been deprecated.
Syntax:
object.contentHeight
Example:
local rect = display.newRect(100, 100, 50, 50) rect:setFillColor(170, 170, 170) print("contentHeight: ".. rect.contentHeight) -- contentHeight: 50
Parameters:
Returns:
number: Value of the object's height in stage coordinates.
Note: This value may not be the same as object.height if the object has been scaled or rotated.
Remarks:
Supported on operating systems and platforms for build numbers shown:
- Mac OS X:Corona SDK 1.0
- Windows:Corona SDK 2.0
- iOS:Corona SDK 1.0
- Android:Corona SDK 2.0