- 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.
var oManager = GetRadWindowManager();
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