PDA

View Full Version : [CLOSED] HtmlEditor does not render correctly in Table Layout



stratadev
Feb 12, 2013, 4:32 PM
It seems like when I add a HtmlEditor to a Container inside Window with a TableLayoutConfig, the Window does not render correctly (goes top-left of the page, should be centered). Also, its not draggable anymore. I've tried other layouts such as FormLayout and AnchorLayout, they all don't work. The only layout that works is FitLayout. Is there something I'm doing wrong here?


<html>
<head id="Head1" runat="server">
<style type="text/css">

</style>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" Theme="Gray"
DisableViewState="true" />

<ext:Window ID="Window1" runat="server" Layout="FitLayout" Width="400" Height="300">
<Items>
<ext:Container ID="Container1" runat="server">
<LayoutConfig>
<ext:TableLayoutConfig Columns="1">
</ext:TableLayoutConfig>
</LayoutConfig>
<Items>
<ext:TextField ID="TextField1" runat="server" FieldLabel="Text Field">
</ext:TextField>
<ext:HtmlEditor ID="HtmlEditor1" runat="server" FieldLabel="HTML Editor">
</ext:HtmlEditor>
</Items>
</ext:Container>
</Items>
</ext:Window>
</form>
</body>
</html>

stratadev
Feb 12, 2013, 7:10 PM
Explicitly setting the height for the HtmlEditor component solves the problem.