[FIXED] [#778] [3.2.0] ImageButton issue

  1. #1

    [FIXED] [#778] [3.2.0] ImageButton issue

    Code below throws "Uncaught RangeError: Maximum call stack size exceeded"


    
    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
     
    <html>
    <head runat="server">
        <script>
            
    
            Ext.net.ImageButton.override({
                onRender: function (ct, position) {
                    this.callParent(arguments);
                    this.btnWrap = this.el;
                }
            });
    
            
        </script>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" >
            <LayoutConfig>
                <ext:HBoxLayoutConfig Align="Stretch"/>
            </LayoutConfig>
            <Items>
                <ext:ImageButton runat="server"    ImageUrl="button.gif"  />
            </Items>
        </ext:Viewport>
    </body>
    </html>
    note that override is taken from http://forums.ext.net/showthread.php...431#post267431
    but it does not seems to have any effect to the exception

    note that removing Align="Stretch" solves the problem

    Thanks
    Regards
    Zdenek
    Last edited by Daniil; Apr 03, 2015 at 2:08 PM. Reason: [FIXED] [3.2.0]
  2. #2
    Hi @Zdenek,

    Thank you for the report! Created an Issue:
    https://github.com/extnet/Ext.NET/issues/778

    Please try this override:
    Ext.net.ImageButton.override({
        privates: {
            wrapPrimaryEl: function (dom) {
                Ext.Component.prototype.wrapPrimaryEl.call(this, dom);
            }
        }
    });
  3. #3
    The override has been applied in the revision 6413 (trunk). It goes to 3.2.0.

Similar Threads

  1. ImageButton and the SuppressEvent value
    By IFLOW in forum 2.x Help
    Replies: 5
    Last Post: Apr 15, 2013, 10:58 PM
  2. [CLOSED] ToolTip on ImageButton
    By skisly in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 18, 2013, 5:56 PM
  3. Problem with imageButton
    By joao.msdn in forum 1.x Help
    Replies: 3
    Last Post: Apr 23, 2010, 11:24 AM
  4. Refresh ImageButton
    By Maia in forum 1.x Help
    Replies: 9
    Last Post: Jan 12, 2010, 1:49 PM
  5. [CLOSED] imagebutton skinid
    By majestic in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 22, 2009, 3:07 PM

Posting Permissions