Changed the default position of the dialog.

This commit is contained in:
Nikhil Mohite 2022-07-05 18:46:49 +05:30 committed by Akshay Joshi
parent 7414394ceb
commit 64e6700228

View File

@ -514,12 +514,15 @@ define('pgadmin.browser.node', [
new_height = height; new_height = height;
} }
let x = (body.offsetWidth - new_width) / 2;
let y = (body.offsetHeight - new_height) / 4;
var new_panel = dockerObject.addPanel( var new_panel = dockerObject.addPanel(
'utility_props', window.wcDocker.DOCK.FLOAT, undefined, { 'utility_props', window.wcDocker.DOCK.FLOAT, undefined, {
w: new_width, w: new_width,
h: new_height, h: new_height,
x: (screen.width < 700 ? '2%' : '25%'), x: (x),
y: (screen.height < 500 ? '2%' : '25%'), y: (y),
} }
); );
/*set movable false to prevent dialog from docking, /*set movable false to prevent dialog from docking,