Feb 15, 2010, 2:46 PM
Multi Field with Anchor and field notes not working
I think there is a problem with multifield anchoring when you are using field notes. Please see the following example:
top multi field renders fine but the bottom one is off. For some
reason when you add a note to a text field it is adding more pixels (3
more i think) to the width causing the last field to wrap to the next
line.
<ext:FormPanel ID="FormPanel1" runat="server" HideLabels="true" MonitorResize="true" Height="500" Padding="5"
Title="My Form" >
<Items>
<ext:MultiField AnchorHorizontal="100%" ID="MultiField1" runat="server">
<Fields>
<ext:TextField AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField2" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField3" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField4" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField5" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField6" AnchorHorizontal="16%" runat="server">
</ext:TextField>
</Fields>
</ext:MultiField>
<ext:MultiField AnchorHorizontal="100%" ID="MultiField2" runat="server">
<Fields>
<ext:TextField ID="TextField1" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField7" Note="test" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField8" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField9" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField10" AnchorHorizontal="16%" runat="server">
</ext:TextField>
<ext:TextField ID="TextField11" AnchorHorizontal="16%" runat="server">
</ext:TextField>
</Fields>
</ext:MultiField>
</Items>
<Buttons>
<ext:Button ID="Button1" runat="server" Icon="Disk" Text="Submit">
</ext:Button>
</Buttons>
</ext:FormPanel>
thetop multi field renders fine but the bottom one is off. For some
reason when you add a note to a text field it is adding more pixels (3
more i think) to the width causing the last field to wrap to the next
line.