Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2009
    Posts
    233
    Vote Rating
    1
    chinabuffet is on a distinguished road

      0  

    Default FIXED-EXTJSIV-1650] Calling enable on container isn't enabling child components

    FIXED-EXTJSIV-1650] Calling enable on container isn't enabling child components


    Seems to happen when a container is programmatically disabled before it is rendered.

    Works:
    Code:
    var toolbar = Ext.create("Ext.toolbar.Toolbar", {
    	items: [{
    		xtype: "button",
    		text: "Click me!"
    	}]
    });
    
    toolbar.disable();
    toolbar.enable();
    
    var panel = Ext.create("Ext.panel.Panel", {
    	html: "Imma Panel",
    	renderTo: document.body,
    	bbar: toolbar
    });
    Doesn't work, the button appears disabled yet.
    Code:
    var toolbar = Ext.create("Ext.toolbar.Toolbar", {
    	items: [{
    		xtype: "button",
    		text: "Click me!"
    	}]
    });
    
    toolbar.disable();
    
    var panel = Ext.create("Ext.panel.Panel", {
    	html: "Imma Panel",
    	renderTo: document.body,
    	bbar: toolbar
    });
    
    toolbar.enable();

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,198
    Vote Rating
    120
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    This bug was resolved before 4.0.0.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2009
    Posts
    233
    Vote Rating
    1
    chinabuffet is on a distinguished road

      0  

    Default


    Thanks!

Similar Threads

  1. Replies: 1
    Last Post: 6 Apr 2011, 11:31 PM
  2. [FIXED] Calling .add() in child panel raises parent tab panels onCardAdd
    By SimonFlack in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 9 Nov 2010, 11:29 PM
  3. AutoFit the child components when Container is resizes
    By mallik in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 8 Feb 2009, 5:57 PM

Thread Participants: 1