- Resize based on WindowContent
- Disable Scrollbars
I'm trying to display a RadWindow that when it loads will resize based on the size of the content inside the RadWindow iframe.
After it has been resized to fit the content I would like to disable the scrollbars for that iframe.
Below is a sample of the javascript I've got so far but am having trouble disabling the scrollbars
function GetSelectedWindow()
{
var oManager = GetRadWindowManager();
return oManager.getActiveWindow();
}
function
ChangeSize()
{
var oWindow = GetSelectedWindow();
var width = oWindow._iframe.contentWindow.document.body.scrollWidth;
var height = oWindow._iframe.contentWindow.document.body.scrollHeight;
oWindow._iframe.style.overflow = 'hidden'; //doesn't work
Window._iframe.scrolling = 'no'; //doesn't work
oWindow._enablePageScrolling(false); //doesn't work
oWindow.setSize(width, height);
}