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

editor height is incorrect with height:100%

3 Answers 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ido nahmias
Top achievements
Rank 1
ido nahmias asked on 05 Mar 2014, 04:07 PM
Hello,

I installed Telerik latest version, and I noticed that my editor height became smaller and not expanded over the td as it was on Telerik's previous versions.

Description: my editor is inside a td, and I set the editor to be width:100% and height: 100%- the width expands as it should (td wifth is equal to editor width) but the height doesn't behave the same (the editor height is smaller than the td height).

* on the previous versions it worked correctly.

Thanks,

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Mar 2014, 07:14 AM
Hi ido nahmias,

The Height problem is  a well known issue / bug in the Mozilla / Gecko / Web-Kit (Safari and Chrome) browsers, and not in RadEditor. The browser itself ignores setting any heights smaller than 150px to the IFRAME element. As a work around please try the following sample code snippet.

ASPX:
<table>
    <tr>
        <td>
            <telerik:RadEditor ID="RadEditor1" runat="server" Height="100px" Width="500px">
            </telerik:RadEditor>
        </td>
    </tr>
</table>

JavaScript:
<script type="text/javascript">
    function pageLoad() {
        var editor = $find("<%=RadEditor1.ClientID %>");
        editor.setSize(editor.get_element().style.width, 100);
        editor.get_contentAreaElement().style.height = "100px";
    }
</script>

Thanks,
Shinu.
0
ido nahmias
Top achievements
Rank 1
answered on 06 Mar 2014, 08:00 AM
At Q3 2013 it worked, when I upgraded to Q1 2014 it stops working as I specified above.
0
Shinu
Top achievements
Rank 2
answered on 07 Mar 2014, 06:17 AM
Hi ido nahmias,

As  work around you can try the JavaScript code provided in the previous post. Please take a look into this forum thread which discuss the same scenario.

http://www.telerik.com/forums/radeditor-height-not-working-properly#08Ocw3hqTUqVrVOgXQYwbg

Thanks,
Shinu.
Tags
Editor
Asked by
ido nahmias
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
ido nahmias
Top achievements
Rank 1
Share this question
or