GlideDialogForm - setSize()

Andrii
Kilo Guru

I'm trying to make rendering process smoother by seeting up specific size of a window and remove all extra logic.

While there is setSize(). setWidth() and setHeight() methods available for GlideDialog Window - I'm looking to set height for GlideDialogForm and can not find one that works.

setSize() only sets width and ignores height; setHeight() doesn't do at all for GlideDialogForm

is it posible to set specific height to GlideDialogForm at all?

1 ACCEPTED SOLUTION

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Andrii,



For GlideDialogForm here are the methods that set the size:



setDialogSize: function(w, h) {


  this.setDialogWidth(w);


  this.setDialogHeight(h);


  },



  setDialogWidth: function(w) {


  this.dialogWidth = w;


  },



  setDialogHeight: function(h) {


  this.dialogHeight = h;


  },



Hope this helps.



Regards,


Sergiu


View solution in original post

4 REPLIES 4

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Andrii,



For GlideDialogForm here are the methods that set the size:



setDialogSize: function(w, h) {


  this.setDialogWidth(w);


  this.setDialogHeight(h);


  },



  setDialogWidth: function(w) {


  this.dialogWidth = w;


  },



  setDialogHeight: function(h) {


  this.dialogHeight = h;


  },



Hope this helps.



Regards,


Sergiu


Thank you - it now works.



P.S. I wonder where did you get this information from? Are you able to read hidden Classes?


Yes, I have access to the source code as I am an employee of ServiceNow.



Regards,


Sergiu


Hi - is there a ways to set the position of the glidedialogform on the screen ?