Fixed an issue where Preferences are not saved when the dialog is maximized. Fixes #7383

This commit is contained in:
Nikhil Mohite 2022-05-17 11:06:14 +05:30 committed by Akshay Joshi
parent 44f9ba4a57
commit ae0624ae8a
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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,