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:
Graph.prototype.fitWindow=function(b,e){e=null!=e?e:10;var g=this.container.clientWidth-e,p=this.container.clientHeight-e;this.zoomTo(Math.floor(20*Math.min(g/b.width,p/b.height))/20);if(mxUtils.hasScrollbars(this.container)){var y=this.view.translate;this.container.scrollTop=(b.y+y.y)*this.view.scale-Math.max((p-b.height*this.view.scale)/2+e/2,0);this.container.scrollLeft=(b.x+y.x)*this.view.scale-Math.max((g-b.width*this.view.scale)/2+e/2,0)}};