I am using RadWindow to display a form which updates itself using Ajax, thereby changing its dimensions. To accommodate for this, I have created a small client script which - on each Ajax response - sets the width and height of the RadWindow equal to the width and height of the table I use to layout the form. The script follows here:
| var table = $get('layoutTable');
Now, the problem is that the set_width and set_height methods sets the width and height of the whole RadWindow, and not the client area. I therefore has to add the width and height of the window borders and title bar, respectively. This means my code now depends on the current skin, which isn't something I want. Is there any way I can easily retrieve the dimensions of the window borders, or set the dimensions of the client area directly?
Thanks a lot!