Skip to content

Commit

Permalink
adding the APS forecast plot, tidying up.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Jun 20, 2024
1 parent ee4505d commit 5bbb55b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/dialog/base-floating-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function BaseFloatingDialog({ title, dialogObject, dataKey, dataL
<Fragment>
<CssBaseline />
<Dialog
aria-labelledby="draggable-dialog-title"
aria-labelledby="draggable-dialog"
open={ true }
onClose={ handleClose }
PaperComponent={ PaperComponent }
Expand All @@ -66,7 +66,7 @@ export default function BaseFloatingDialog({ title, dialogObject, dataKey, dataL
sx={{ zIndex: 402, width: 750, height: 465, '.MuiBackdrop-root': { backgroundColor: 'transparent' }}}
>
<DialogTitle sx={{ cursor: 'move', backgroundColor: 'lightblue', textAlign: 'center',
fontSize: 14, height: 45, p: 1.5 }} id="draggable-dialog-title"> { title }
fontSize: 14, height: 45, p: 1.5 }} id="draggable-dialog"> { title }
</DialogTitle>

<IconButton size="small" autoFocus onClick={ handleClose } sx={{ position: 'absolute', right: 8, top: 5 }}>
Expand All @@ -88,7 +88,7 @@ export default function BaseFloatingDialog({ title, dialogObject, dataKey, dataL
*/
function PaperComponent(props) {
return (
<Draggable defaultPosition={{x: 110, y: 110}} handle="#draggable-dialog-title" cancel={'[class*="MuiDialogContent-root"]'}>
<Draggable defaultPosition={{x: 0, y: 0 }} handle="#draggable-dialog" cancel={'[class*="MuiDialogContent-root"]'}>
<Paper { ...props } />
</Draggable>
);
Expand Down

0 comments on commit 5bbb55b

Please sign in to comment.