From a6169a80a9ff2c2490d10d83d74ffd6bec0bc31c Mon Sep 17 00:00:00 2001 From: Raphael Wickihalder Date: Sun, 3 Apr 2022 15:19:05 +0200 Subject: [PATCH] Fix element position when dragged in homepage customizer --- ui/component/homepageSort/view.jsx | 3 ++- ui/scss/component/homepage-sort.scss | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ui/component/homepageSort/view.jsx b/ui/component/homepageSort/view.jsx index 07f3e547d..3068eaa10 100644 --- a/ui/component/homepageSort/view.jsx +++ b/ui/component/homepageSort/view.jsx @@ -122,7 +122,8 @@ export default function HomepageSort(props: Props) { // $FlowFixMe draggableProvided.draggableProps.style.left = draggedItemRef.offsetLeft; // $FlowFixMe - draggableProvided.draggableProps.style.top = draggedItemRef.offsetTop; + // draggableProvided.draggableProps.style.top = draggedItemRef.offsetTop; + draggableProvided.draggableProps.style.top = draggableProvided.draggableProps.style.top - 50; } return (