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.
local rect = display.newRect(100, 100, 50, 50) rect:setFillColor(170, 170, 170) print("contentHeight: ".. rect.contentHeight) -- contentHeight: 50
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.
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