View Full Version : [CLOSED] Gap between FieldContainer and HtmlEditor during hBox Layout

Mar 10, 2013, 11:28 AM

I have a very simple layout like this:

<ext:FieldSet ID="FieldSet1" runat="server" Height="200" Title="<%# SR.GeneralInformation %>" Layout="VBoxLayout" >
<ext:VBoxLayoutConfig Align="Stretch" />
<ext:FieldContainer ID="FieldContainer1" runat="server" HideLabel="true" CombineErrors="true" MsgTarget="None" Layout="HBoxLayout">
<ext:Parameter Name="labelAlign" Value="top" Mode="Value" />
<ext:Parameter Name="allowBlank" Value="false" Mode="Raw" />
<ext:TextField ID="Title" runat="server" FieldLabel="<%# TenderResource.TenderTitle %>"
Text="<%# Model.Title %>" AutoDataBind="true" Flex="1" />
<ext:TextField ID="TenderNumber" runat="server" FieldLabel="<%# TenderResource.TenderNumber %>"
Text="<%# Model.TenderNumber %>" AutoDataBind="true" Width="120" Margins="0 5 0 5" />
<ext:TextField ID="InternalTitle" runat="server" FieldLabel="<%# TenderResource.InternalMemo %>"
Text="<%# Model.InternalTitle %>" AutoDataBind="true" Width="160" />
<ext:HtmlEditor ID="Description" Flex="1" runat="server" FieldLabel="<%# TenderResource.TenderDescription %>"
Value="<%# Model.Description %>" AutoDataBind="true" EscapeValue="true" LabelAlign="Top" >

It is working fine expect of one aspect. Every time when I try to run this form, I see small gap between field container and html editor.
I think this is somehow related with indicators, because when I try to click on the first field and then click on html editor, the first field shows that it should be filled in but the gap is disappears

What should I do in order to remove this gap?


Mar 10, 2013, 3:00 PM

VBox layout requires Height or Flex property for each item, try to set Height for FieldContainer