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

RadEditor - Removing BorderWidth causes issues with AutoResizeHeight

1 Answer 65 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lakshman
Top achievements
Rank 1
Lakshman asked on 17 Feb 2009, 09:28 PM
Hi there,

This is how we are using RadEditor (ASP.NET AJAX 2008.31125) in one of our pages: 

<telerik:radeditor
    ID="RadEditor1"
    runat="server"     
    EditModes="Design,Html"
    AutoResizeHeight="true"
    EnableViewState="true"        
    BorderWidth="1"
    Skin="Telerik"
    ToolsFile="../RadControls/Editor/ToolsFile.xml"
    EnableResize="false">       
    <ContextMenus>
        <telerik:EditorContextMenu  Enabled="false" />
        <telerik:EditorContextMenu TagName="IMG"  Enabled="false" />
        <telerik:EditorContextMenu TagName="TABLE"  Enabled="false" />
    </ContextMenus>   
</telerik:radeditor>

AutoResizeHeight works fine, when BorderWidth is set to "1". But when I remove BorderWidth or set it to "0", AutoResizeHeight functionality is not working properly and size of the editor decreases for every keystroke.
.
Please let me know what you think.

Thanks, Lakshman

1 Answer, 1 is accepted

Sort by
0
Lakshman
Top achievements
Rank 1
answered on 17 Feb 2009, 10:14 PM
Figured it out.

Set the BorderWidth="0" and added padding for "1px". That solved it!

Thanks, Lakshman
Tags
Editor
Asked by
Lakshman
Top achievements
Rank 1
Answers by
Lakshman
Top achievements
Rank 1
Share this question
or