try use native options

This commit is contained in:
Luiz Costa 2024-06-07 16:01:37 +01:00
parent f918013d14
commit 7c31300b02

View File

@ -16,13 +16,14 @@ function create_dialog_and_init_map(frm) {
currentMap = null; // unset the reference currentMap = null; // unset the reference
} }
dialog.hide(); dialog.hide();
} },
size: 'extra-large'
}); });
// Adjust the size of the dialog // Adjust the size of the dialog
dialog.$wrapper.find('.modal-content').css("width", "80%"); //dialog.$wrapper.find('.modal-content').css("width", "80%");
dialog.$wrapper.find('.modal-content').css("margin-left", '-80%'); //dialog.$wrapper.find('.modal-content').css("margin-left", '-80%');
dialog.$wrapper.find('#map').css("width", '100%'); //dialog.$wrapper.find('#map').css("width", '100%');
//dialog.$wrapper.find('.modal-content').css("height", "600px"); //dialog.$wrapper.find('.modal-content').css("height", "600px");
// Add hide event to reload the page when the dialog is closed // Add hide event to reload the page when the dialog is closed