PDA

View Full Version : My app comes up blank



phamtranquocviet
3 May 2014, 3:37 PM
Hi,

My app comes up blank. Thanks for helping.

Here is my application.js:


Ext.application({
name: "GiipIq",
appFolder: "app",
autoCreateViewport: true,
//controllers: ['Problems']
});


Here is my Viewport:


Ext.define("GiipIq.view.Viewport", {
extend: "Ext.container.Viewport",
layout: "fit",
requires: ["GiipIq.view.Problem"],

initComponent: function() {
this.items = [{
xtype: "problemwindow"
}];
this.callParent();
}
});


Here is my view:


Ext.define("GiipIq.view.Problem", {
extend: "Ext.window.Window",
alias: "widget.problemwindow",
title: "Problems to be run",
closable: false,
layout: "border",

getEastPanel: function() {
return {
region: "west",
title: "Available Problems",
width: 200,
split: true,
collapsible: true,
floatable: false,
xtype: "panel",
rootVisible: false,
//store: store
};
},

getCentralPanel: function() {
return {
};
},

initComponent: function () {
this.items = [
this.getEastPanel(),
//this.getCentralPanel()
];
this.callParent(arguments);
}
});

jsakalos
3 May 2014, 11:18 PM
Do you get any errors or warnings in the console?

phamtranquocviet
4 May 2014, 5:41 AM
There is no error whatsoever in the Firebug. That's what get me really stuck.

jsakalos
4 May 2014, 9:37 AM
Add autoShow:true to the window config.

phamtranquocviet
4 May 2014, 8:39 PM
autoShow: true works. Thanks.

jsakalos
4 May 2014, 11:41 PM
Super! Mark one of the posts as answer please.

phamtranquocviet
5 May 2014, 5:05 AM
How do you marked answered? I looked around for a while but could not find such action.

jsakalos
5 May 2014, 11:45 AM
The green box with text "Mark this post as the best answer to this thread".