How to increase height of a GlideDialogWindow?

Arun17
Tera Contributor

Hello All,

I have created a UI Action to preview the current record.However, i am not being able to increase height of the pop up window. I have used dd.setHeight(); and passed value into it but i could not see any change in the height. Also, i used dd.setSize(width_size,height_size) but no change. Any help in this is highly appreciable.Thanks in advance.

UI Action: 

function showRCA(){ 

if (typeof rowSysId == 'undefined')
sysId = gel('sys_uniqueValue').value;
else
sysId = rowSysId;
var currentRecord = g_form.getUniqueValue();
var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
var dd = new dialogClass("notification_display");
dd.setTitle("Notification Preview");
dd.setWidth(800);
dd.setPreference('sysparm_notification_id', '962c20c3dbc05300f5759e04db961918');
dd.setPreference('sysparm_target_id', currentRecord);
dd.render();
}

UI Page:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:inline template="notification_display.xml" />
</j:jelly>

 

1 REPLY 1

Harsh Vardhan
Giga Patron

try with setSize()

 

setSize(Number width, Number height)

Sets the size of the dialog window.

If you do not pass width and height parameters, a default size is used.

Parameter(s):
NameTypeDescription
widthNumberThe width of the dialog window.
heightNumberThe height of the dialog window.
Return:
TypeDescription
voidMethod does not return a value

Example

 

var gdw = new GlideDialogWindow('show_list');
      gdw.setSize(750,300);

 

 

You can refer the API details on below link. 

https://developer.servicenow.com/app.do#!/api_doc?v=london&id=r_GDW-setSize_N_N