Fix element position when dragged in homepage customizer
This commit is contained in:
parent
a6169a80a9
commit
052c602742
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue