I have a page that displays a radWindow. If modal is set to "true" it displays a horizontal scrollbar on my parent page. if set to "false", it doesn't.
I narrowed this down to probably an issue with the width and height of the ModalOverlay. because if I add the following styles,
it eliminates the scrollbars on the parent page, however, causes strange issues when then moving the radWindow from its default position (i.e. the widthand height of the Modal Overlay no longer reach the bounds of the parent page if the radWindows is moved around)
Any ideas on how to fix this one way or another?
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
<script type="text/javascript"> |
function ShowWindow() |
{ |
var wnd = window.radopen("window.aspx", "win"); |
wnd.restore(); |
wnd.setSize(document.body.scrollWidth-170,document.body.scrollHeight+180); |
wnd.center(); |
} |
</script> |
</telerik:RadCodeBlock> |
<asp:Button ID="button" runat="server" Text="Show" CssClass="button" OnClientClick="ShowWindow();return false;"/> |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="overflow:hidden;"> |
<Windows> |
<telerik:RadWindow ID="win" VisibleStatusbar="false" KeepInScreenBounds="true" |
DestroyOnClose="false" runat="server" InitialBehaviors="Close,Move,Resize" Behaviors="Close,Move,Resize" |
ShowContentDuringLoad="true" Skin="Simple" Overlay="true" Modal="true" Title="Window"> |
</telerik:RadWindow> |
</Windows> |
</telerik:RadWindowManager> |
I narrowed this down to probably an issue with the width and height of the ModalOverlay. because if I add the following styles,
.TelerikModalOverlay |
{ |
width:100% !important; |
height:100% !important; |
} |
it eliminates the scrollbars on the parent page, however, causes strange issues when then moving the radWindow from its default position (i.e. the widthand height of the Modal Overlay no longer reach the bounds of the parent page if the radWindows is moved around)
Any ideas on how to fix this one way or another?