Sep 04, 2012, 9:53 AM
[CLOSED] [2.1] From panel field's width incorrect behaviour
Hello.
Please, review code sample below. It is looks like Width property sets width for field with label, not for field itself. For example, we set Width = 200 for combobox, which has LabelWidth = 95, LabelPad = 5, then width of the combobox would be (200 - 95 - 5) = 100. It seems for me like a bug.
Is it a bug? Or this works as designed?
Please, review code sample below. It is looks like Width property sets width for field with label, not for field itself. For example, we set Width = 200 for combobox, which has LabelWidth = 95, LabelPad = 5, then width of the combobox would be (200 - 95 - 5) = 100. It seems for me like a bug.
Is it a bug? Or this works as designed?
<ext:FormPanel runat="server">
<FieldDefaults>
<CustomConfig>
<ext:ConfigItem Name="LabelWidth" Value="120" Mode="Raw" />
</CustomConfig>
</FieldDefaults>
<Items>
<ext:ComboBox runat="server" Width="100" FieldLabel="Combo without container" />
<ext:FieldContainer runat="server" FieldLabel="Combo in container">
<Items>
<ext:ComboBox ID="ComboBox1" runat="server" Width="100" />
</Items>
</ext:FieldContainer>
</Items>
</ext:FormPanel>
Best regards.
Last edited by Daniil; Sep 04, 2012 at 12:36 PM.
Reason: [CLOSED]