Crafty.stage
The stage where all the DOM entities will be placed.
Back to top
Crafty.stage.inner
Crafty.stage.inner is a div inside the #cr-stage div that holds all DOM entities.
If you use canvas, a canvas element is created at the same level in the dom
as the the Crafty.stage.inner div. So the hierarchy in the DOM is
Crafty.stage.elem
- `Crafty.stage.inner` (a div HTMLElement)
- `Crafty.canvas._canvas` (a canvas HTMLElement)
Back to top
Crafty.viewport.reload
public Crafty.viewport.reload()
Recalculate and reload stage width, height and position. Useful when browser return wrong results on init (like safari on Ipad2).
Back to top
Crafty.viewport.reset
public Crafty.viewport.reset()
Resets the viewport to starting values Called when scene() is run.

@craftyjs
#crafty@freenode.net
google groups
louis@craftyjs.com
github