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

autosize window height does not work in IE7

3 Answers 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 28 Jul 2010, 03:47 PM
Hi

I have window that is opened by javascript and has autosize set to true.

<script type="text/javascript">
        function showWindow(url) { 
            var oWnd = $find("<%=RadWindowRegion.ClientID%>"); 
            oWnd.setUrl(url); 
            oWnd.show(); 
        
</script>

<

 

telerik:RadWindow ID="RadWindowRegion"

 

 

runat="server" style="z-index:10000;"

 

 

Behavior="Resize, Close, Move" Modal="True" VisibleStatusbar="False"

 

 

AutoSize="True" Overlay="True">

 

 

</telerik:RadWindow>

 



This works fine in IE8, Firefox 3, Safari 5, Chrome etc, but has a height of zero in IE7 .  If I drag the bottom of the window frame,
it displays the content as it should. Can you suggest a fix/workaround for the dreaded IE7?

Thanks

Clive



3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 Jul 2010, 03:03 PM
Hi Clive,

I would suggest to make sure that you are using XHTML-compliant DocType on the parent and the content page and to add the following style to the content page:

html, body, form
{
 padding:0;
 margin:0;
 height:100%;
}


If this doesn't help, please open a support ticket and send us a sample project that reproduces the problem so we can investigate further.

Kind regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Josep Bonet
Top achievements
Rank 1
answered on 19 Aug 2010, 02:45 PM
Hello,

I've got the same problem as described before. I've figured out that these lines of javascript are causing the error.
In the autosize method of the radwindow.js file, you do that:

line 1356:
sizingElement.style.height = "1px";
contentPageHeight = docElem.scrollHeight;

In IE7, setting the sizingelement height to 1px resets also the scrollheight of the content to 1px. In other browsers it doesn't have the same effect.

The fix you proposed didn't solve the bug.

Any idea?

best regards

Laurent
0
Georgi Tunev
Telerik team
answered on 25 Aug 2010, 08:36 AM
Hello Laurent,

In such case, please open a support ticket and send us a sample (parent and content page) where the problem can be reproduced so we can investigate further. If the problem is in our code, we will fix it right away.


Sincerely yours,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Josep Bonet
Top achievements
Rank 1
Share this question
or