From 7c31300b02a0233749cf65c35dbec0acf6daa36e Mon Sep 17 00:00:00 2001 From: Luiz Costa Date: Fri, 7 Jun 2024 16:01:37 +0100 Subject: [PATCH] try use native options --- .../fleet_management/doctype/trip/trip_list.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fleet_management/fleet_management/doctype/trip/trip_list.js b/fleet_management/fleet_management/doctype/trip/trip_list.js index 014670e..853b3d8 100644 --- a/fleet_management/fleet_management/doctype/trip/trip_list.js +++ b/fleet_management/fleet_management/doctype/trip/trip_list.js @@ -16,13 +16,14 @@ function create_dialog_and_init_map(frm) { currentMap = null; // unset the reference } dialog.hide(); - } + }, + size: 'extra-large' }); // Adjust the size of the dialog - dialog.$wrapper.find('.modal-content').css("width", "80%"); - dialog.$wrapper.find('.modal-content').css("margin-left", '-80%'); - dialog.$wrapper.find('#map').css("width", '100%'); + //dialog.$wrapper.find('.modal-content').css("width", "80%"); + //dialog.$wrapper.find('.modal-content').css("margin-left", '-80%'); + //dialog.$wrapper.find('#map').css("width", '100%'); //dialog.$wrapper.find('.modal-content').css("height", "600px"); // Add hide event to reload the page when the dialog is closed