Results 1 to 2 of 2

Thread: Enable/Disable toolbar items bug in ExtJs 5.1

    This duplicates another forum thread, you can visit that thread here.
  1. #1
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574

    Default Enable/Disable toolbar items bug in ExtJs 5.1

    Hallo,

    On panel disable -> enable, toolbar items remain in disable view state.

    please have a look at the following fiddle example.

    PHP Code:
    Ext.application({    name 'Fiddle',
        
    launch : function() {        var subPanel Ext.create('Ext.panel.Panel', {                xtype'panel',                dockedItems: [{                    xtype'toolbar',                    items: [{                        xtype'button',                        text"Button 1"                    }, {                        xtype'button',                        text"Button 2"                                        }]                }],                html"Text"            }),            panel Ext.create('Ext.panel.Panel', {                title"My Panel",                width400,                height400,                renderToExt.getBody(),                html"bla bla bla",                layout'fit',                dockedItems: [{                    xtype'toolbar',                    items: [{                        xtype'button',                        text"Enable",                        handler: function() {                            subPanel.enable();                        },                        scopethis                    }, {                        xtype'button',                        text"Disable",                        handler: function() {                            subPanel.disable();                        },                        scopethis                    }]                }],                items: [                    subPanel                ]            });    }}); 
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. This is a known issue:
    http://www.sencha.com/forum/showthread.php?295910

    It's been fixed for 5.1.1, but the code change hasn't been merged in yet. There are several workarounds discussed on that thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •