Many of the Corona code examples (for example, the first one here) use display.stageWidth and display.stageHeight, but neither of these properties is listed as a property of display in the API documentation (here). Am I misunderstanding something? Or have they been deprecated? If the latter, what properties exactly replace them?
Hi @hexagram,
These properties have been deprecated, but they still work. If you print these values in the Terminal/console, you’ll notice a message that says they’ve been replaced by:
display.contentWidth
display.contentHeight
Sincerely,
Brent Sorrentino
OK, good to know. Thanks, Brent.
Hi @hexagram,
These properties have been deprecated, but they still work. If you print these values in the Terminal/console, you’ll notice a message that says they’ve been replaced by:
display.contentWidth
display.contentHeight
Sincerely,
Brent Sorrentino
OK, good to know. Thanks, Brent.