self.resizeIn = function(new_w, new_h) { var old_w = this.innerWidth || this.document.body.offsetWidth; var old_h = this.innerHeight || this.document.body.offsetHeight; if (!new_w) { new_w = old_w; } if (!new_h) { new_h = old_h; } new_w -= old_w; new_h -= old_h; self.resizeBy(new_w,new_h); }
