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

Minimum height browser inconsistency?

2 Answers 129 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 21 Jul 2010, 02:56 PM
Internet Explorer allows you to set / resize the height of a radwindow to be very small, even down to 0px. However, every other browser I've tested only allows the height to go down to about 100 pixels. Am I missing something obvious or does anyone know a workaround to make a radwindow's height about 50px on every browser? Thanks!

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Jul 2010, 05:32 AM
Hi Jim,

The problem comes from a bug with Gecko / Webkit browsers. They incorrectly renders tables with iFrames in it when the height is less than about 150 pixels (the RadWindow is basically an IFRAME). You could test it by adding the following code in an aspx page. You will notice that the height of the IFRAME is not 100px but about 150px (the code below is actually the basic RadWindow's structure when RadWindow loads external page):
<table style="height:100px;border:3px solid green">  
    <tr style="height:100%"
        <td style="height:100%"
            <iframe style="border: 1px solid red; height:100%" src=""></iframe>
        </td>
    </tr>
</table>

To be able to use a popup with such small height, I should use RadWindow as a controls container, i.e. to have the content on the main page. In such case, RadWindow does not use IFRAME, but renders a DIV element and the browsers' bug will not affect the height. More information on how to use RadWindow as a controls' container is available in the demo above and in this help article.

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
Jim
Top achievements
Rank 1
answered on 22 Jul 2010, 03:02 PM
Georgi,

Thank you very much for your quick and helpful response!

Jim
Tags
Window
Asked by
Jim
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Jim
Top achievements
Rank 1
Share this question
or