PDA

View Full Version : [CLOSED] Controls not aligned properly



speedstepmem4
Feb 03, 2015, 6:29 AM
Hi,

When we navigate using TAB press, the width of TextField is adjusted. If we not provided width(by default width) TextField is not adjusted.

Please review the code below:



<%@ Page Language="C#" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test page</title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager" runat="server"></ext:ResourceManager>
<ext:Panel ID="Panel1" runat="server">
<Items>
<ext:FormPanel ID="pnlSystemSetUp" runat="server" BodyPadding="5" Border="false">
<FieldDefaults LabelAlign="Left" MsgTarget="Side" />
<Items>
<ext:FieldSet ID="pnlControls" runat="server" MarginSpec="0 0 0 10" ButtonAlign="Right" Border="false">
<Items>
<ext:TextField ID="txtName" Name="Name" runat="server" AllowBlank="false" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtName1" Name="Name1" runat="server" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtName2" Name="Name2" runat="server" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtName3" Name="Name3" runat="server" MaxLength="50" MsgTarget="Side" Width="400" StyleSpec="width:400px;"></ext:TextField>
<ext:TextField ID="txtAddress1" Name="AddressLine1" runat="server" MaxLength="200" MsgTarget="Side"></ext:TextField>
</Items>
</ext:FieldSet>
</Items>
<Buttons>
</Buttons>
</ext:FormPanel>
</Items>
</ext:Panel>
</form>
</body>
</html>


Guide us!!!

Daniil
Feb 03, 2015, 2:37 PM
Hi @speedstepmem4,

Please clarify what exactly you mean under "adjusted" and "not adjusted".

speedstepmem4
Feb 04, 2015, 2:58 AM
Hi Daniil,

Sorry for the confusion.

Steps to replicate the issue:

1) Run the above provided sample code.
2) Click on the first control and then press TAB key.
3) The controls width is reduced (when we explicitly provide width = 400 in that control).


Note: Please refer the screenshot.

RCN
Feb 04, 2015, 3:05 AM
Adn latest version, revision #6301, from trunk, evertything works as expected

20301

Speedstepmem4, can you download the latest version from trunk and retest?

If you need help to download: http://forums.ext.net/showthread.php?52091-CLOSED-Tab-key-is-not-working-after-upgrade-to-3-0&p=238771&viewfull=1#post238771

RCN
Feb 04, 2015, 3:12 AM
Related threads:

http://forums.ext.net/showthread.php?49641
http://forums.ext.net/showthread.php?50881

speedstepmem4
Feb 04, 2015, 3:46 AM
Hi,

Thanks for the guidance RCN.

Actually as we gave MsgTarget = "Side" the issue raised. After seeing your post then by adding AutoFitErrors="false" the issue resolved.

Way to go!!! :) Can close the thread.

RCN
Feb 04, 2015, 4:08 AM
You're welcome.

Let me know in case you need further assistance.