Aug 11, 2016, 3:15 PM
[CLOSED] Mandatory fields in FormPanel expand when with specified Width and IndicatorText declared
Hello,
I have posted before this problem before, but didn't actually really understand what was the problem.
When I create a TextField inside a FormPanel and assign to it a Width and a IndicatorText (like "*"), if it is not valid the TextField will enlarge its size...
I create an example page, so that you can replicate the problem:
Thanks in advance for the answer.
I have posted before this problem before, but didn't actually really understand what was the problem.
When I create a TextField inside a FormPanel and assign to it a Width and a IndicatorText (like "*"), if it is not valid the TextField will enlarge its size...
I create an example page, so that you can replicate the problem:
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">
<title>Mandatory FormPanel Fields problem</title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ManagementResourceManager" runat="server">
</ext:ResourceManager>
<ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
<Items>
<ext:Panel runat="server" Split="true" Layout="AutoLayout" Region="Center">
<Items>
<ext:FormPanel ID="FormPanel1" runat="server" Title="No specified width" Hidden="false" Frame="true" Width="500" Margins="0 2 0 2" MonitorValid="true">
<Defaults>
<ext:Parameter Name="msgTarget" Value="side" Mode="Value" />
<ext:Parameter Name="AutoFitErrors" Value="false" Mode="Raw" />
<ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
</Defaults>
<Items>
<ext:TextField ID="document_type_input_name" runat="server" FieldLabel="Name" IndicatorText="*" />
<ext:TextField ID="document_type_input_description" runat="server" FieldLabel="Description" IndicatorText="*" />
</Items>
</ext:FormPanel>
<ext:FormPanel ID="FormPanel2" runat="server" Title="Specified width" Hidden="false" Frame="true" Width="500" Margins="0 2 0 2" MonitorValid="true">
<Defaults>
<ext:Parameter Name="msgTarget" Value="side" Mode="Value" />
<ext:Parameter Name="AutoFitErrors" Value="false" Mode="Raw" />
<ext:Parameter Name="AllowBlank" Value="false" Mode="Raw" />
</Defaults>
<Items>
<ext:TextField ID="TextField1" runat="server" FieldLabel="Name" IndicatorText="*" AnchorHorizontal="95%" />
<ext:TextField ID="TextField2" runat="server" FieldLabel="Description" IndicatorText="*" AnchorHorizontal="95%" />
</Items>
</ext:FormPanel>
</Items>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Why does it only happens when the TextField has a Width declared (or if it has an AnchorHorizontal) ?Thanks in advance for the answer.
Last edited by fabricio.murta; Sep 17, 2016 at 12:31 AM.
Reason: no user feedback for 7+ days