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:
c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var L=parseInt(this.div.offsetLeft),U=parseInt(this.div.offsetWidth),g=c.embedViewport.x+c.embedViewport.width,y=parseInt(this.div.offsetTop),H=parseInt(this.div.offsetHeight),O=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(L,g-U))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(y,O-H))+"px";this.div.style.height=Math.min(c.embedViewport.height,
parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(c.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme)A=Editor.currentTheme,Editor.currentTheme="",this.doSetCurrentTheme(A,0,mxUtils.bind(this,function(){"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<Editor.smallScreenWidth&&