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

Editor Width set to 0

1 Answer 163 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 11 Apr 2012, 04:40 PM
I have an issue where the style for the editor is getting set with a width of 0. This is not inherited from any other css style but being set by the kendo UI. 

This is the rendered HTML after calling the editor method:
<table class="k-widget k-editor k-header" cellspacing="4" cellpadding="0" style="width: 0px; height: 0px;">


Here is the code for the control"

<textarea id="editor" rows="10" cols="30" data-bind="value: Notes"></textarea>
<script type="text/javascript">
    $(document).ready(function () {
        $("#editor").kendoEditor();
    });
</script>

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Apr 2012, 04:58 PM
Hi Jonathan,

Is the Editor initialized while inside a hidden container? If yes, then Javascript size calculations do not work and the Editor cannot adjust its layout. Please instantiate it over a visible textarea element, or use visibility:hidden instead of display:none.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or