diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 36e65c34b..ed21f97ef 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -11,7 +11,7 @@ Syntax: `- short text describing the change _(Your Name)_` - Test strategy written _(4ydan)_ - Added Nextcloud integration documentation in `/doc/research/nextcloud_integration.md`_(Samuel)_ - _()_ -- _()_ +- Fix wrong placement of plantings _(Paul)_ - _()_ - CI: Send email when master fails #109 _(4ydan)_ - _()_ diff --git a/frontend/src/features/map_planning/layers/plant/PlantsLayer.tsx b/frontend/src/features/map_planning/layers/plant/PlantsLayer.tsx index aa9829d41..77fc01cfe 100644 --- a/frontend/src/features/map_planning/layers/plant/PlantsLayer.tsx +++ b/frontend/src/features/map_planning/layers/plant/PlantsLayer.tsx @@ -41,8 +41,8 @@ function usePlantLayerListeners(listening: boolean) { // TODO: get the selectedLayerId from the store layerId: selectedLayer.id, // consider the offset of the stage and size of the element - x: position.x - 50, - y: position.y - 50, + x: Math.round(position.x), + y: Math.round(position.y), height: 100, width: 100, rotation: 0,