Replaced borderWith with strokeWidth as it differs between wallpaper and canvas

This commit is contained in:
Erik Tiekstra
2017-05-23 09:07:56 +02:00
parent 5f9169ef51
commit c2a1fa8299
+2 -2
View File
@@ -35,8 +35,8 @@ function Viewport(canvas) {
if (croppedData) {
// Calculate the new position after screenresize and when the
// image already has been cropped to a certain position.
var left = _rect.left + _borderWidth - (canvas.getImage().width * croppedData.x);
var top = _rect.top + _borderWidth - (canvas.getImage().height * croppedData.y);
var left = _rect.left + _rect.strokeWidth - (canvas.getImage().width * croppedData.x);
var top = _rect.top + _rect.strokeWidth - (canvas.getImage().height * croppedData.y);
canvas.getImage().set({ left: left, top: top }).setCoords();
} else {