diff --git a/src/geom/rectangle/FitOutside.js b/src/geom/rectangle/FitOutside.js index 42b6d44a7..cac5501d4 100644 --- a/src/geom/rectangle/FitOutside.js +++ b/src/geom/rectangle/FitOutside.js @@ -27,12 +27,12 @@ var FitOutside = function (target, source) else { // Taller than Wide - target.setSize(source.width, source.width * ratio); + target.setSize(source.width, source.width / ratio); } return target.setPosition( - (source.right / 2) - target.width / 2, - (source.bottom / 2) - target.height / 2 + source.centerX - target.width / 2, + source.centerY - target.height / 2 ); };