Fix element position when dragged in homepage customizer

This commit is contained in:
Raphael Wickihalder 2022-04-03 15:51:52 +02:00
parent a6169a80a9
commit 052c602742
No known key found for this signature in database
GPG key ID: 05179BB92383243D

View file

@ -122,8 +122,8 @@ export default function HomepageSort(props: Props) {
// $FlowFixMe // $FlowFixMe
draggableProvided.draggableProps.style.left = draggedItemRef.offsetLeft; draggableProvided.draggableProps.style.left = draggedItemRef.offsetLeft;
// $FlowFixMe // $FlowFixMe
// draggableProvided.draggableProps.style.top = draggedItemRef.offsetTop; draggableProvided.draggableProps.style.top =
draggableProvided.draggableProps.style.top = draggableProvided.draggableProps.style.top - 50; draggableProvided.draggableProps.style.top - document.getElementsByClassName('modal')[0].offsetTop;
} }
return ( return (
<div <div