May 13, 2009, 4:07 AM
[CLOSED] User Control width within ColumnLayout
Hi
I've got a problem getting a User Control (Coolite-based Panels) to auto size when placed on a Page using a ColumnLayout.
On the main page (using the Control) I've got:
I'm sure it's a simple matter of getting the panel (and panel type) in the right order, but I can't figure it out.
Cheers
Steve
I've got a problem getting a User Control (Coolite-based Panels) to auto size when placed on a Page using a ColumnLayout.
On the main page (using the Control) I've got:
<ext:Panel ID="mainPanel" runat="server">
<Body>
<ext:ColumnLayout runat="server">
<ext:LayoutColumn ColumnWidth="0.5">
<ext:Panel ID="contactAddress" runat="server">
<Body>
<uc1:AddressRecords ID="contactAddressUC" runat="server" />
</Body>
</ext:Panel>
</ext:LayoutColumn>
<ext:LayoutColumn ColumnWidth="0.5">
<ext:Panel ID="companyAddress" runat="server">
<Body>
<uc1:AddressRecords ID="companyAddressUC" runat="server" />
</Body>
</ext:Panel>
</ext:LayoutColumn>
</ext:ColumnLayout>
</Body>
</ext:Panel>
In the User Control I've got :<ext:Panel ID="addressPanel" runat="server" Border="false" MonitorResize="true" AutoWidth="true">
<Body>
<ext:FieldSet ID="addressFieldSet" Title="Locations" runat="server">
<Body>
<ext:FormPanel ID="addressFormPanel" runat="server" Border="false">
<Body>
<ext:FormLayout ID="addressForm" runat="server">
<ext:Anchor Horizontal="95%">
<ext:ComboBox
ID="addressTitleCombo"
runat="server"
SourceID="addressStore"
FieldLabel="Address Title"
DisplayField="addressTitle"
ValueField="id"
TriggerAction="All"
Editable="true"
Mode="Local"
BlankText="Select an address">
<Listeners>
<Select Handler="#{addressFormPanel}.getForm().loadRecord(record);" />
</Listeners>
</ext:ComboBox>
</ext:Anchor>
... Additional Fields .....
</ext:FormLayout>
</Body>
</ext:FormPanel>
</Body>
</ext:FieldSet>
</Body>
</ext:Panel>
I can't get the User Control to fit the width of the ColumnLayout. I've tried FitLayout in both (page and control page), but they wouldn't resize to the column width, and instead extend off to the right hand side (obviously half hidden)I'm sure it's a simple matter of getting the panel (and panel type) in the right order, but I can't figure it out.
Cheers
Steve