TakeThePhil (1) [Avatar] Offline
#1
On pg 61, it shows follwoing code:

var myPanel = new Ext.Panel({
fullscreen: true,
styleHtmlContent: true,
html: "Testing Events",
listeners: {
beforehide: function() {
// … some business logic …
return false;
}
}
});
myPanel.show(); //WHY DO YOU NEED THIS? IT ALREADY RENDERS BEFORE THIS LINE

// … some business logic …
myPanel.hide();

So if you comment out myPanel.show() , it will still render since myPanel instance is configured with fullscreen:true

Looking at Sench Touch API -> Panel -> fullscreen config option :

Force the component to take up 100% width and height available. Defaults to false. Setting this configuration immediately sets the monitorOrientation config to true. Setting this to true will render the component instantly.

So then why the need for show method? I think you should address this. I'm new to sencha touch and I'm sure other people might be thinking the same.

Message was edited by:
TakeThePhil