Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Setting the height of a webdialogwindow in javascript
posted

Hello,

 I have some javascript code that adds controls to my webdialogwindow.  I can also set it's height programatically like so:

document.getElementById('incMyControl_webDialog1').style.pixelHeight =

document.getElementById('incMyControl_webDialog1').style.pixelHeight + 25;
 

The only problem is that my contentarea or template, not sure which isn't resizing and I'm not sure how to resize it.  The bit that isn't resizing's id is :1967156794.7:mkr:11 and it's class is igdw_BodyContentArea.

-Eric

  • 24497
    posted

    Hi Eric,

    Changes to DOM objects are not supported by WebDialogWindow. If you want to modify properties of control, then you should use public member functions of WebDialogWindow javascript object. To change size, you may try set_width(value), set_height(value), setSize(width, height) members.