We are using RadWindow 1.8.2.0 and we are programatically resizing the RadWindow based on the user's resolution.
It works fine in IE7 and Firefox, but it doesn't work in IE6. Are we doing something wrong or there's a bug with it in this version?
Here is the JavaScript code:
function ResizeWindow()
{
var win = GetRadWindow();
var width = window.parent.document.body.clientWidth;
var height = window.parent.document.body.clientHeight;
if (width < 820)
width -=20;
else
width = 820;
if (height < 780)
height -=20;
else
height = 780;
win.SetSize(width,height);
win.Restore()
}
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else
if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
The function is called automatically by placing the script at the end of the HTML page:
<script type="text/javascript">
ResizeWindow();
</script>
I would appreciate your help.
Thank you,
Andrei