code: function () {
              Crafty.DOM.window.init();
              var w = Crafty.DOM.window.width,
                  h = Crafty.DOM.window.height,
                  offset;
  
  
              if (Crafty.stage.fullscreen) {
                  this.width = w;
                  this.height = h;
                  Crafty.stage.elem.style.width = w + "px";
                  Crafty.stage.elem.style.height = h + "px";
  
                  if (Crafty.canvas._canvas) {
                      Crafty.canvas._canvas.width = w;
                      Crafty.canvas._canvas.height = h;
                      Crafty.DrawManager.drawAll();
                  }
              }
  
              offset = Crafty.DOM.inner(Crafty.stage.elem);
              Crafty.stage.x = offset.x;
              Crafty.stage.y = offset.y;
          }
docs: @
  #Crafty.viewport.reload
  @comp Crafty.stage
  
  @sign public Crafty.viewport.reload()
  
  Recalculate and reload stage width, height and position.
  Useful when browser return wrong results on init (like safari on Ipad2).