Oct 14, 2011, 4:55 AM
[CLOSED] Layout issue
I am trying to add a panel to a div. However, the content of the DIV isn't stretching to whatever the panel contains. The following is the code:
<form id="fForm" runat="server">
<div style="padding:10px;">
<div style="font-size:24px;font-weight:bold;color:black;">Overview</div>
<div style="font-size:14px;font-weight:bold;padding-bottom:15px;">ID: 000000-0000-0000-00000000</div>
<ext:CompositeField runat="server">
<Items>
<ext:Button ID="bDelete" runat="server" Text="Delete" Icon="Delete" />
<ext:Button ID="bAdd" runat="server" Text="Add" Icon="Add" />
<ext:Button ID="bUpdate" runat="server" Text="Update" Icon="Accept" />
</Items>
</ext:CompositeField>
<ext:Panel runat="server" BodyBorder="false" StyleSpec="padding-top:10px;">
<Items>
<ext:ColumnLayout runat="server" Split="true">
<Columns>
<ext:LayoutColumn>
<ext:Panel runat="server" Width="250" Title="Details" Layout="Form" LabelAlign="Top" Padding="10">
<Items>
<ext:TextField ID="tFirstName" runat="server" FieldLabel="Name 1" AnchorHorizontal="100%" />
<ext:TextField ID="tLastName" runat="server" FieldLabel="Name 2" AnchorHorizontal="100%" />
<ext:TextField ID="tEmailAddress" runat="server" FieldLabel="Email Address" AnchorHorizontal="100%" />
</Items>
</ext:Panel>
</ext:LayoutColumn>
<ext:LayoutColumn>
<ext:Panel runat="server" Width="250" Title="Title" Html="This is some content." />
</ext:LayoutColumn>
</Columns>
</ext:ColumnLayout>
</Items>
</ext:Panel>
</div>
</form>
However, when it renders, it is looking like the attached screenshot. Can anyone explain why it's cutting off the left panel?
Last edited by Daniil; Oct 14, 2011 at 4:38 PM.
Reason: [CLOSED]