This is a migrated thread and some comments may be shown as answers.

Problem with modal windows that are larger than browser window

2 Answers 91 Views
Window
This is a migrated thread and some comments may be shown as answers.
TechSavvySam
Top achievements
Rank 1
TechSavvySam asked on 31 May 2011, 07:52 PM
Is there any plan to fix the display of modal windows that are larger than the browser window so they can automatically be positioned at the top left of the page instead of the middle?  When they are positioned in the middle, you have no way to get to the modal window's toolbar to drag it to where you can see it because the top of the modal window is beyond the top scroll area for the browser window.

see attached image--note that I made the browser window a bit bigger after the modal popped up so you could actually see where it is.

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Jun 2011, 09:59 AM

Hi Sam,

This feature is already available. Please set the KeepInScreenBounds property to true. You can observe its effect with the following page:

<telerik:RadWindow runat="server" ID="RadWindow1" Modal="true" VisibleOnPageLoad="true" Width="2000" Height="2000" KeepInScreenBounds="true"></telerik:RadWindow>

Without the property you will not be able to see the titlebar, with it the window will be positioned to the top left corner.

You can also test its functionality by making the window even bigger some time after it is loaded:

function pageLoad()
{
    var oWnd = $find("<%=RadWindow1.ClientID %>");
    setTimeout(function ()
    {
        oWnd.setSize(2500,2500);
    }, 10000);
}

With the property the window will not move, just the scrollbars of the browser window will extend.

I hope this helps you achieve the desired functionality.



Regards,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
TechSavvySam
Top achievements
Rank 1
answered on 01 Jun 2011, 11:48 AM
Thanks.  That fixed it.  For some reason the description of that property didn't jump out at me as the solution.  When I read it now, it does...
Tags
Window
Asked by
TechSavvySam
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
TechSavvySam
Top achievements
Rank 1
Share this question
or