Set the minimum window size of the NWjs desktop app to be 1024x768.

This commit is contained in:
Aditya Toshniwal 2021-09-06 19:07:28 +05:30 committed by Akshay Joshi
parent 6decb4cb4a
commit c5ad2c03a2

View File

@ -207,8 +207,8 @@ function launchPgAdminWindow() {
'frame': true,
'position': 'center',
'resizable': true,
'min_width': 640,
'min_height': 480,
'min_width': 1024,
'min_height': 768,
'focus': true,
'show': false,
}, (pgadminWindow)=> {
@ -230,7 +230,6 @@ function launchPgAdminWindow() {
pgadminWindow.on('new-win-policy', function(frame, url, policy) {
if(!frame) {
policy.setNewWindowManifest({
'id': 'pgadmin-tools',
'icon': '../../assets/pgAdmin4.png',
'frame': true,
'position': 'center',