PDA

View Full Version : [CLOSED] Horizontal anchoring not respected



RCM
Mar 07, 2012, 6:43 PM
Hi Below is the code sample. I have applied AnchorHorizontal="100%" to the text fields. But that is not respected at all. How can this be fixed.


<ext:Window ID="Window1"
runat="server"
Width="350"
Height="200"
Title="Password Verification"
Closable="false"
BodyPadding="5"
Layout="Form">
<Items>
<ext:TextField LabelAlign="Top"
ID="PasswordField"
runat="server"
FieldLabel="<%$ Resources:WebResources|Security.FormLabels, LoginLabelUsernameText %>"
AnchorHorizontal="100%" DefaultAnchor="100%" FieldCls="highlight"
/>
<ext:TextField LabelAlign="Top"
runat="server"
FieldLabel="<%$ Resources:WebResources|Security.FormLabels, LoginLabelPasswordText %>"
AnchorHorizontal="100%">
</ext:TextField>
<ext:LinkButton ID="ForgotPassword" runat="server" Text="<%$ Resources:WebResources|Security.FormLabels, LoginHyperLinkForgotYourPasswordText %>"
AnchorHorizontal="100%" HideLabel="true" TabIndex="3" AutoDataBind="true" Disabled="false">
<DirectEvents>
<Click AutoDataBind="true" Url=''
Timeout="60000" CleanRequest="true" Method="POST">
<ExtraParams>
<ext:Parameter Name="username" Value="#{Username}.getValue()" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:LinkButton>
</Items>
</ext:Window>

RCM
Mar 07, 2012, 6:55 PM
I responded to the thread in error. please assistance is needed for the anchoring issue

Vladimir
Mar 07, 2012, 7:11 PM
There is no Form layout in v2
Please use Anchor layout

RCM
Mar 07, 2012, 7:18 PM
Thanks. that fixed it