autosize window height does not work in IE7

4 posts, 0 answers
  1. Clive Hoggar
    Clive Hoggar avatar
    349 posts
    Member since:
    Nov 2008

    Posted 28 Jul 2010 Link to this post

    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



  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 30 Jul 2010 Link to this post

    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
  3. Josep Bonet
    Josep Bonet avatar
    9 posts
    Member since:
    Aug 2009

    Posted 19 Aug 2010 Link to this post

    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
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Aug 2010 Link to this post

    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
Back to Top