[CLOSED] TextField reduces its width when losing focus

Page 3 of 4 FirstFirst 1234 LastLast
  1. #21
    I had the same problem i had my text fields in a field container and i was using the column layout . I changed column layout to Hbox layout and bingo . It s not expanding anymore.
  2. #22
    Yes i use skype. Unfortunately i didn't receive you email. What's your timezone?
  3. #23
    +1 Rome
    my skype account is ale.bbros
  4. #24
    Rome, wonderful city :)

    Could it happen tomorrow, in the evening (Rome time)?
  5. #25
    Ok for tomorrow, I always have skype on, I'll let you know if I can turn computer on or I am preparing the new year party :)
    Rome was only for time zone ;) I'm from Ferrara (also nice town).
  6. #26
    I was able to reproduce the issue described by Alessandro.

    Initial state
    Click image for larger version. 

Name:	mt001.jpg 
Views:	6 
Size:	3.8 KB 
ID:	18081

    After Field 1 lost focus
    Click image for larger version. 

Name:	mt002.jpg 
Views:	9 
Size:	4.9 KB 
ID:	18082

    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:FormPanel ID="_frm" Title="Form" DefaultAnchor="100%" Width="400" Height="150" runat="server">
                <FieldDefaults MsgTarget="Side" />
                <Items>
                    <ext:TextField FieldLabel="Field 1" runat="server" />
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>
    But when Field 1's AllowBlank is set to false, everything works as expected.

    Click image for larger version. 

Name:	mt003.jpg 
Views:	6 
Size:	5.3 KB 
ID:	18091

    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:FormPanel ID="_frm" Title="Form" DefaultAnchor="100%" Width="400" Height="150" runat="server">
                <FieldDefaults MsgTarget="Side" />
                <Items>
                    <ext:TextField FieldLabel="Field 1" AllowBlank="false" runat="server" />
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>


    I am gonna investigate it and keep you posted.
  7. #27
    Alessando asked on post #15 whether ResourceManager's ScriptMode could be related to the issue and i confirm that it is related.

    When ResourceManager's ScriptMode is set to Debug, everything works as expected.
    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" ScriptMode="Debug" />
            <ext:FormPanel ID="_frm" Title="Form" Layout="AnchorLayout" DefaultAnchor="100%" Width="400" Height="150" runat="server">
                <FieldDefaults MsgTarget="Side" />
                <Items>
                    <ext:TextField FieldLabel="Field 1" runat="server" />
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>
  8. #28
    On debug mode, when form is validated, error wrap element's style is set to display: none
    Click image for larger version. 

Name:	mt001.png 
Views:	6 
Size:	31.1 KB 
ID:	18101

    But on release mode it's set to visibility: hidden
    Click image for larger version. 

Name:	mt002.png 
Views:	7 
Size:	30.3 KB 
ID:	18111

    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" ScriptMode="Debug" Theme="Gray" />
            <ext:FormPanel ID="_frm" Title="Form" Layout="AnchorLayout" DefaultAnchor="100%" Width="400" Height="150" runat="server">
                <FieldDefaults MsgTarget="Side" />
                <Items>
                    <ext:TextField FieldLabel="Field 1" runat="server" />
                </Items>
                <Buttons>
    
                    <ext:Button Text="Validate Form" runat="server">
                        <Listeners>
                            <Click Handler="App._frm.isValid();" />
                        </Listeners>
                    </ext:Button>
                </Buttons>
            </ext:FormPanel>
        </form>
    </body>
    </html>
  9. #29
    During Field's getLabelableRenderData, errorWrapStyle is set as shown below:
    errorWrapStyle: (sideError && !autoFitErrors) ? 'visibility:hidden' : 'display:none'
    So, on release mode, were sideError and / or autFitErrors assigned correctly?
    Last edited by RaphaelSaldanha; Jan 01, 2015 at 5:37 AM.
  10. #30
    I opened another thread accidentally, sorry.

    Cross-reference: http://forums.ext.net/showthread.php...ong-after-blur
Page 3 of 4 FirstFirst 1234 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