how to increase the size of the dialog window .

Shyna1
Tera Contributor

Hello,

I want to increase the dialog window size . I am using g_modal since the dialog window is supposed to opened in workspace.

Below is the script I am using:

g_modal.showFrame({
        url: '/sn_hr_ws_case_creation.do?sysparm_user=' + USER,
        title: 'Create Case',
        size: 'lg',
        width: 1000,
        height: 1200,
        autoCloseOn: 'URL_CHANGED',
        callback: function(ret, data) {
            if (ret) {
                g_aw.openRecord(data.table, data.record_id);
            }
        }
Increasing the width and height only alters  the spaces inside the dialog window and not the dialog window.
Any leads on this is highly appreciated.
2 REPLIES 2

Ankur Bawiskar
Tera Patron

@Shyna1 

did you try changing adding like this?

height: '20rem',

Anil Lande
Kilo Patron

Hi,

I don't see any documentation around this.

Please check below answered question which says the same thing. 

The size attribute define the size of window and 'lg or xl' value defines the window size.