View Full Version : [CLOSED] Controls not aligned properly

Feb 03, 2015, 7:29 AM

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>
<form id="form1" runat="server">
<ext:ResourceManager ID="ResourceManager" runat="server"></ext:ResourceManager>
<ext:Panel ID="Panel1" runat="server">
<ext:FormPanel ID="pnlSystemSetUp" runat="server" BodyPadding="5" Border="false">
<FieldDefaults LabelAlign="Left" MsgTarget="Side" />
<ext:FieldSet ID="pnlControls" runat="server" MarginSpec="0 0 0 10" ButtonAlign="Right" Border="false">
<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>

Guide us!!!

Feb 03, 2015, 3:37 PM
Hi @speedstepmem4,

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

Feb 04, 2015, 3: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.

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


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

Feb 04, 2015, 4:12 AM
Related threads:


Feb 04, 2015, 4:46 AM

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.

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

Let me know in case you need further assistance.