David Benson 2020-11-11 12:46:41 +00:00 committed by GitHub
parent 82321b3496
commit a5ac1ab175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -8005,8 +8005,8 @@ mxGraph.prototype.center = function(horizontal, vertical, cx, cy)
if (!hasScrollbars)
{
this.view.setTranslate((horizontal) ? Math.floor(t.x - bounds.x * s + dx * cx / s) : t.x,
(vertical) ? Math.floor(t.y - bounds.y * s + dy * cy / s) : t.y);
this.view.setTranslate((horizontal) ? Math.floor(t.x - bounds.x / s + dx * cx / s) : t.x,
(vertical) ? Math.floor(t.y - bounds.y / s + dy * cy / s) : t.y);
}
else
{