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

[Solved] Editor Size Problem

1 Answer 124 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Paul June Domag
Top achievements
Rank 1
Paul June Domag asked on 10 Dec 2009, 04:02 PM
I set the telerik editor control to 100x250 size. the size is correct after loading. but once I press on the HTML button the editor changes its height. why is this happening?

Telerik control: Ajax Q3 2009
browser: Firefox 3.5.5

here's the snippet when creating an editor:
        <telerik:radeditor id="textEditor" runat="server" OnClientLoad="resize"
            EnableResize="False" Height="100px" Width="250px">
            <Tools>
                <telerik:EditorToolGroup >
                <telerik:EditorTool Name="Cut" />
                <telerik:EditorTool Name="Copy" />
                <telerik:EditorTool Name="Paste" />
                </telerik:EditorToolGroup>
            </Tools>


Thanks,

Paul

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Dec 2009, 06:20 PM
Hi Paul,

The Height problem is due to a well known issue / bug in the Mozilla / Gecko browsers, and not in RadEditor. The browser itself ignores setting any heights smaller than 150px to the IFRAME element.

Here is a small sample that shows the root of the problem:

<table style="height:80px;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>

The problem is fixed when the editor is loaded in Design mode, but not when the user switches to Html mode.

To fix the problem you should increase the Height in Firefox to at least 200px.


Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Paul June Domag
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or