diff --git a/src/package.ent b/src/package.ent index cea5965..d0d2236 100644 --- a/src/package.ent +++ b/src/package.ent @@ -1,6 +1,6 @@ - + diff --git a/src/propeditor.controller.js b/src/propeditor.controller.js index 13f5d51..da6a0ff 100644 --- a/src/propeditor.controller.js +++ b/src/propeditor.controller.js @@ -181,13 +181,16 @@ angular.module("umbraco").controller("ImageHotspotController", function($scope, $scope.storePosition = function (x, y) { $scope.assertImageDimensions() - var percentX = 100 * x / $scope.image.width - var percentY = 100 * y / $scope.image.height + var xInt = Math.round(x) + var yInt = Math.round(y) + + var percentX = 100 * xInt / $scope.image.width + var percentY = 100 * yInt / $scope.image.height $scope.model.value = { image: $scope.image.src, - left: x, - top: y, + left: xInt, + top: yInt, percentX: percentX, percentY: percentY, width: $scope.image.width, diff --git a/umbraco-marketplace.json b/umbraco-marketplace.json index f8293f1..d17b50b 100644 --- a/umbraco-marketplace.json +++ b/umbraco-marketplace.json @@ -6,6 +6,8 @@ "Url": "https://greystate.dk/who/" }, "Category": "Editor Tools", + "LicenseTypes": [ "Free" ], + "PackageType": "Package", "Screenshots": [ { "ImageUrl": "https://raw.githubusercontent.com/vokseverk/Vokseverk.ImageHotspot/master/images/imagehotspot-editor.jpg",