[CLOSED] [#639] TextField RightButtons breaks layout when field is disabled

  1. #1

    [CLOSED] [#639] TextField RightButtons breaks layout when field is disabled

    On the following example, RightButton is shown as expected.

    <!DOCTYPE html>
    <html>
    <body>
        <form runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Gray" ScriptMode="Debug" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:Panel Title="Center" Region="Center" Html="Center Content" runat="server" />
                    <ext:FormPanel Title="East" Width="200" Region="East" DefaultAnchor="100%" Layout="AnchorLayout" runat="server">
                        <FieldDefaults LabelAlign="Top" MsgTarget="Side" />
                        <Items>
                            <ext:TextField FieldLabel="Field 1" runat="server">
                                <RightButtons>
                                    <ext:Button runat="server" Icon="Add" />
                                </RightButtons>
                            </ext:TextField>
                        </Items>
                    </ext:FormPanel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>


    But when field is disabled, the layout is broken
    <!DOCTYPE html>
    <html>
    <body>
        <form runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Gray" ScriptMode="Debug" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:Panel Title="Center" Region="Center" Html="Center Content" runat="server" />
                    <ext:FormPanel Title="East" Width="200" Region="East" DefaultAnchor="100%" Layout="AnchorLayout" runat="server">
                        <FieldDefaults LabelAlign="Top" MsgTarget="Side" />
                        <Items>
                            <ext:TextField Disabled="true" FieldLabel="Field 1" runat="server">
                                <RightButtons>
                                    <ext:Button runat="server" Icon="Add" />
                                </RightButtons>
                            </ext:TextField>
                        </Items>
                    </ext:FormPanel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>


    But when the field is disabled and there is no right button, everything works as expected.
    <!DOCTYPE html>
    <html>
    <body>
        <form runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Gray" ScriptMode="Debug" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:Panel Title="Center" Region="Center" Html="Center Content" runat="server" />
                    <ext:FormPanel Title="East" Width="200" Region="East" DefaultAnchor="100%" Layout="AnchorLayout" runat="server">
                        <FieldDefaults LabelAlign="Top" MsgTarget="Side" />
                        <Items>
                            <ext:TextField Disabled="true" FieldLabel="Field 1" runat="server" />
                        </Items>
                    </ext:FormPanel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>
    Attached Thumbnails rb001.png   rb002.png   rb003.png  
    Last edited by Daniil; Jan 16, 2015 at 1:20 PM. Reason: [CLOSED] [#639]
  2. #2
    Hi Raphael,

    Thank you for the report! We will investigate.
  3. #3
    Thank you Daniil. I will investigate as well.
  4. #4
    I confirm that this issue is still reproducible on version 3.1.0.
    Last edited by RaphaelSaldanha; Jan 14, 2015 at 11:42 AM.
  5. #5
    Created an Issue.
    https://github.com/extnet/Ext.NET/issues/639

    Fixed in the revision 6254 (trunk). It goes to v3.1.0 beta.
  6. #6
    Thank you Daniil

Similar Threads

  1. Replies: 0
    Last Post: Sep 17, 2014, 8:05 PM
  2. Replies: 2
    Last Post: Oct 24, 2013, 11:53 AM
  3. Replies: 5
    Last Post: Aug 16, 2013, 2:40 PM
  4. [CLOSED] textfield + RightButtons
    By John_Writers in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 03, 2013, 3:51 PM
  5. TextField disabled bug ?
    By xtremexploit in forum 1.x Help
    Replies: 5
    Last Post: Nov 14, 2011, 4:41 PM

Posting Permissions