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

Window shows above Restriction Zone (IE9)

1 Answer 47 Views
Window
This is a migrated thread and some comments may be shown as answers.
wnl
Top achievements
Rank 1
wnl asked on 03 Apr 2012, 07:44 AM
Hi,
I have some problem with MDI windows.
In IE9 a opened window appears above a div (restricion zone, with red border - see screen please).
In IE8 everything is ok.
My code to open window:
...
var wnd = manager.open(url, name);
      
var browserWin = wnd.BrowserWindow;
 var fResize = new browserWin.Function("sender", "args", "OnClientResize(sender,args);");
 wnd.add_resize(fResize);
 var fEndDrag = new browserWin.Function("sender", "args", "OnClientDragEnd(sender,args);");
 wnd.add_dragEnd(fEndDrag);     
 if (cookie_max == 1 || cookie_max == "1") wnd.Maximize();
I'm using Telerik 2010.1.415.20.
My div (restricion zone) doesn't have width and height.
Where is a problem?
Thanks.

UPDATE: When div has width and height - window shows in proper way. But I don't want to specify size of restrict zone.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Apr 2012, 12:13 PM
Hello,

 The restriction zone functionality requires that it has width and height set in pixels. This is so because we cannot be alerted if its dimensions change, as a simple HTML element does not offer events for this. Also, a restriction zone must always have sufficient dimensions that can contain the RadWindow you try to open inside.The dimensions must be in pixels, because percentage values change and when the browser is asked for them it will not return actual size in pixels, but the percentage value. Most of these limitations come from the way browsers and HTML work and cannot be avoided. I would also advise that you upgrade to the latest version as 1) it supports IE9 and 2) there have been improvements on the restriction zone functionality in some edge cases in the summer of 2011.


All the best,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
wnl
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or