The stage where all the DOM entities will be placed.
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)
public Crafty.viewport.reload()
Recalculate and reload stage width, height and position. Useful when browser return wrong results on init (like safari on Ipad2).
public Crafty.viewport.reset()
Resets the viewport to starting values Called when scene() is run.