if ($debug) Debug.info("imageForDrawView::OVERRIDEN completeCallback"); this.refObj.width){ var height = this.height/(this.width/this.refObj.width) this.setAttribute('width',this.refObj.width); this.setAttribute('height',height); this.setAttribute('x',0); } if (this.height>this.refObj.height){ var width = this.width/(this.height/this.refObj.height) this.setAttribute('height',this.refObj.height); this.setAttribute('width',width); this.setAttribute('y',0); } if(this.y+this.height>this.refObj.height){ this.setAttribute('y',0); } if(this.x+this.width>this.refObj.width){ this.setAttribute('x',0); } } //only send syncCommand if alterModus is true (meaning that this is the Moderator) //otherwise just send a notification to moderator that this image has been loaded //if this is just a recordContent-modi (recordingsViewer) then there should be no syncing if (this.recorderModus) { this.refObj.storeTempValsAndLoadSyncListRecording(this); } else if (this.alterModus){ this.refObj.storeTempValsAndLoadSyncList(this); } else if (this.isLocalSync){ this.refObj.addImageToLayerHistoryToLocalLoaded.sendEvent(this); } else { this.refObj.sendLoadNotificationImage(this); } this.refObj.layers.push(this); ]]>