jeroenvduffelen
19 Jun 2010, 3:31 PM
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)
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:
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!
First off all i'm setting up my basic stuff for the webapp with this code (like in the example of kitchensink)
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:
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!