Skip to content

Commit 233251e

Browse files
authored
Merge pull request #4219 from Northeastern-Electric-Racing/3953-save-gantt-changes-modal-misplaced
3953-save-gantt-changes-modal-misplaced center draggable modal on open using positionOffset
2 parents fd4a2fd + d8804a8 commit 233251e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/src/components/NERDraggableFormModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ export const NERDraggableFormModal = ({
3939
return (
4040
<>
4141
{open && (
42-
<Draggable handle=".draggable-handle" nodeRef={nodeRef}>
42+
<Draggable handle=".draggable-handle" nodeRef={nodeRef} positionOffset={{ x: '-50%', y: '-50%' }}>
4343
<Box
4444
ref={nodeRef}
4545
sx={{
4646
position: 'fixed',
4747
top: '50%',
48-
right: '5%',
48+
left: '50%',
4949
backgroundColor: theme.palette.background.paper,
5050
boxShadow: 24,
5151
zIndex: 6,

0 commit comments

Comments
 (0)