-
19 Jun 2010 3:31 PM #1
[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)
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: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(); } });
The log returns true for the formpanelLogin being rendered.. but it isnt vissible.Code:this.panelLogin.add(formpanelLogin); this.panelLogin.doLayout(); console.log(formpanelLogin.rendered);
I attached the code as an attachement. Any help would be cool!
-
23 Jul 2010 3:06 AM #2
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 }] }); } });
-
30 Jul 2010 10:26 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
I've opened the issue in trac, thank you for the report.
-
14 Aug 2010 5:22 AM #4
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!
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[CLOSED-188] Adding formpanel to panel ofter the panel has been created and rendered.
By jeroenvduffelen in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 23 Jul 2010, 3:06 AM -
Panel content not rendered on slide out when Panel rendered collapsed
By Eitschman in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 24 Feb 2010, 1:51 AM -
Adding a button to a panel after it's rendered?
By HmblProgrammer in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 2 Jul 2008, 11:25 PM


Reply With Quote