mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-28 01:41:13 -06:00
Fixed an issue where Preferences are not saved when the dialog is maximized. Fixes #7383
This commit is contained in:
parent
44f9ba4a57
commit
ae0624ae8a
@ -19,3 +19,4 @@ Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #7372 <https://redmine.postgresql.org/issues/7372>`_ - Tell Docker to always pull the latest base images when building containers.
|
||||
| `Issue #7383 <https://redmine.postgresql.org/issues/7383>`_ - Fixed an issue where Preferences are not saved when the dialog is maximized.
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
import { Box, Dialog, DialogContent, DialogTitle, makeStyles, Paper } from '@material-ui/core';
|
||||
import React, { useState } from 'react';
|
||||
import clsx from 'clsx';
|
||||
import { getEpoch } from 'sources/utils';
|
||||
import { DefaultButton, PgIconButton, PrimaryButton } from '../components/Buttons';
|
||||
import Draggable from 'react-draggable';
|
||||
@ -148,6 +149,9 @@ const dialogStyle = makeStyles((theme) => ({
|
||||
border: '1px solid ' + theme.otherVars.inputBorderColor,
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
},
|
||||
fullScreen: {
|
||||
transform: 'none !important'
|
||||
}
|
||||
}));
|
||||
|
||||
function PaperComponent(props) {
|
||||
@ -167,7 +171,7 @@ function PaperComponent(props) {
|
||||
props.isresizeable == 'true' ?
|
||||
<Rnd
|
||||
size={props.isfullscreen == 'true' && { width: '100%', height: '100%' }}
|
||||
className={classes.dialog}
|
||||
className={clsx(classes.dialog, props.isfullscreen == 'true' ? classes.fullScreen : '')}
|
||||
default={{
|
||||
x: 300,
|
||||
y: 100,
|
||||
|
Loading…
Reference in New Issue
Block a user