Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var K=parseInt(this.div.offsetLeft),R=parseInt(this.div.offsetWidth),m=d.embedViewport.x+d.embedViewport.width,A=parseInt(this.div.offsetTop),M=parseInt(this.div.offsetHeight),Q=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(K,m-R))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(A,Q-M))+"px";this.div.style.height=Math.min(d.embedViewport.height,
parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)F=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(F,0,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&