[CLOSED] TextField reduces its width when losing focus

Page 1 of 4 123 ... LastLast
  1. #1

    [CLOSED] TextField reduces its width when losing focus

    To reproduce this issue you can create a new WebForm and paste the following code.
    In v2.5.3 it runs as expected, but in v3.0.0 (and svn 6237) the TextField reduces its width when the focus is lost (pressing the tab key, or clicking away).

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim rm As New Ext.Net.ResourceManager
            Me.Controls.Add(rm)
            Dim txtUser As New Ext.Net.TextField With {.ID = "UserNameTextbox", .Width = 150, .LabelWidth = 50, .Margin = 1}
            Me.Controls.Add(txtUser)
        End Sub
    I am using vs2013, framework 4.5.1, web forms.
    It happens both in IE11 and in Chrome.
    Is there a way to avoid this behavior?
    thank you
    Last edited by Daniil; Jan 14, 2015 at 3:16 PM. Reason: [CLOSED]
  2. #2
    I was not able to reproduce the problem on IE 11, Chrome 39 an FF 30

    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <ext:ResourceManager runat="server" ScriptMode="Debug" />
        <ext:TextField Width="150" LabelWidth="50" Margin="1" runat="server" />
    </body>
    </html>
  3. #3
    Does your page have any css?
    Last edited by Daniil; Dec 29, 2014 at 6:34 AM.
  4. #4
    Hello everybody,

    I also cannot reproduce. Providing us with a full test case would be appreciated.
  5. #5
    I do not have any css in the page.
    Today I tested on a different computer having a correct behavior.
    Using your examples when leaving a field with a validator I get the "!" icon, and on a different computer I get the only red border and no size change.
    When there is no validator I get only a smaller size.
    I attach two screenshot by https://examples3.ext.net in case it helps; now I investigate more about PC configuration.
    I have IE 11.0.9600.11498 and Chrome 39.0.21.95
    Click image for larger version. 

Name:	password.PNG 
Views:	9 
Size:	5.1 KB 
ID:	17801Click image for larger version. 

Name:	reduced size.PNG 
Views:	16 
Size:	26.1 KB 
ID:	17811
  6. #6
    Please keep us posted.
  7. #7
    After a lot of test I have got ideas to share with you.
    My development environment is a touch screen ultrabook; do you think that touch capabilities are a significant variable?
    Other working computers in my test do not have touch monitor.
    Thinking in this direction I tried your TextField Button example on my Nokia Lumia 925 Windows Phone, which browses like a phone, and not like a PC.
    Windows Phone does shrink the textfield as well as my pc.
    It seems to me that it becomes as small as the "validator" width, even if its icon is not displayed.
    I do attach Windows Phone screenshot in case it could help.

    Control focused
    Click image for larger version. 

Name:	wp_ss_20141229_0007.jpg 
Views:	13 
Size:	77.3 KB 
ID:	17861
    Control unfocused
    Click image for larger version. 

Name:	wp_ss_20141229_0008.jpg 
Views:	11 
Size:	76.4 KB 
ID:	17871

    What do you think about the "touch theory"?
  8. #8
    My envoirement is also touch: vaio ultrabook. I tried to reproduce but unfortunately with no success.
  9. #9
    I am not sure whether i am allowed to do the following: i could connect to your computer (remotely) to try to address the issue. If you agree i am gonna ask ext.net team permission to do so.
  10. #10
    I agree, no problem
Page 1 of 4 123 ... LastLast

Similar Threads

  1. [CLOSED] TextField - Change Style on Focus
    By shaileshsakaria in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 01, 2013, 3:52 PM
  2. Replies: 1
    Last Post: Aug 21, 2013, 5:47 PM
  3. [CLOSED] Textfield losing focus when button is enabled
    By RCM in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 29, 2012, 8:07 PM
  4. Replies: 6
    Last Post: Jun 11, 2010, 12:47 PM
  5. Focus on Textfield
    By hans4 in forum 1.x Help
    Replies: 2
    Last Post: Jul 02, 2009, 9:08 PM

Posting Permissions