The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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