this.refObj.layers.push(this); this.refObj.isScreenImageLoading=false; this.sendToBack(); var height = this.height/(this.width/this.parent.width) this.setAttribute('width',this.parent.width); this.setAttribute('height',height); this.setAttribute('x',0); this.refObj.toggleVisibleScreenSharing(); this.refObj.toggleVisibleScreenSharing(); this.refObj.toggleVisibleScreenSharing();