From 4a612bc3934b4470c657eb2d5f7e1d2d31191dab Mon Sep 17 00:00:00 2001 From: Bushuo Date: Sun, 9 Jul 2023 15:18:30 +0200 Subject: [PATCH 1/2] fix: wrong placement of plantings --- .../src/features/map_planning/layers/plant/PlantsLayer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, From b67f3938e85c38e8e18fd404c804e431878e1c58 Mon Sep 17 00:00:00 2001 From: Bushuo Date: Sun, 9 Jul 2023 15:20:39 +0200 Subject: [PATCH 2/2] docs: add changelog --- doc/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)_ - _()_