Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    64
    Vote Rating
    0
    jeroenvduffelen is on a distinguished road

      0  

    Default [CLOSED-188] Adding formpanel to panel ofter the panel has been created and rendered.

    [CLOSED-188] Adding formpanel to panel ofter the panel has been created and rendered.


    First of all.. this stuff is so cool!

    First off all i'm setting up my basic stuff for the webapp with this code (like in the example of kitchensink)

    Code:
    Ext.ns('wsApp', 'Ext.ws');
    
    Ext.ws.UniversalUI = Ext.extend(Ext.Panel, {
    	fullscreen: true,
    	layout: 'card',
    	initComponent: function(){
    		Ext.ws.UniversalUI.superclass.initComponent.call(this);
    	},
    });
    
    wsApp.app = {
    	fnInit: function(){
    		this.ui = new Ext.ws.UniversalUI();
    		wsApp.devise.fnInit();
    	}
    }
    
    Ext.setup({
    	onReady: function(){
    		wsApp.app.fnInit();
    	}
    });
    But... I'm running into a little problem. I have created a Panel called panelLogin which I render to the screen with wsApp.app.ui.setCard. After rendering I want to add a FormPanel called formpanelLogin:

    Code:
    this.panelLogin.add(formpanelLogin);
    this.panelLogin.doLayout();
    console.log(formpanelLogin.rendered);
    The log returns true for the formpanelLogin being rendered.. but it isnt vissible.

    I attached the code as an attachement. Any help would be cool!
    Attached Files

  2. #2
    Sencha - Community Support Team
    Join Date
    Jun 2010
    Posts
    220
    Vote Rating
    0
    meyerovb is on a distinguished road

      0  

    Default


    Fit layout panels need to have dimension in order to 'fit' an item inside them, so you would need to give panelLogin a height in order for anything to be displayed in it (fit panels should have only 1 item, although they can have multiple dockedItems).

    Having said that, I do think you found a bug. In the below example, the auto layout panel has it's button replaced correctly, while the fit layout panel has it's button removed, but the new one is not rendered.

    Code:
    Ext.setup({ onReady: function () {
    var button =
        {
            xtype: 'button',
            text: 'Click me',
            handler: function () {
                var panel = this.ownerCt;
                panel.remove(this);
                panel.add({ xtype: 'button', text: 'Button2' });
                panel.doLayout();
            }
        };
    new Ext.Panel({ fullscreen: true,
        items: [{ items: [button] },
                {
                    items: [button],
                    layout: 'fit',
                    height: 50
                }]
    });
    }
    });

  3. #3
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    I've opened the issue in trac, thank you for the report.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,120
    Vote Rating
    508
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I'm not able to reproduce this, using the latest build, so I think we can close this off.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. [CLOSED-188] Adding formpanel to panel ofter the panel has been created and rendered.
    By jeroenvduffelen in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 23 Jul 2010, 3:06 AM
  2. Panel content not rendered on slide out when Panel rendered collapsed
    By Eitschman in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 24 Feb 2010, 1:51 AM
  3. Adding a button to a panel after it's rendered?
    By HmblProgrammer in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 2 Jul 2008, 11:25 PM

Thread Participants: 3

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar