PDA

View Full Version : [OPEN-1329] Restore fails on a Window initialized with maximized true



jlorenzen
14 Oct 2010, 8:04 AM
I think I may have found a bug.
I'm using ext 3.2.1 examples. This fails for me on Ubuntu Firefox 3.5.7 and Windows XP IE 8.0.6001.18702 in IE8 and IE7 mode.

I changed the Hello World Window example, http://dev.sencha.com/deploy/dev/examples/window/hello.html, by adding 2 config options to the Window: maximizable: true and maximized: true. After I click the Hello World button, the window opens maximized, but when I click the Restore button, the window disappears.

Any suggested workarounds?

Here is the modified code:


Ext.onReady(function(){
var win;
var button = Ext.get('show-btn');

button.on('click', function(){
// create the window on the first click and reuse on subsequent clicks
if(!win){
win = new Ext.Window({
applyTo:'hello-win',
layout:'fit',
width:500,
height:300,
closeAction:'hide',
plain: true,
maximizable: true,
maximized: true,
items: new Ext.TabPanel({
applyTo: 'hello-tabs',
autoTabs:true,
activeTab:0,
deferredRender:false,
border:false
}),

buttons: [{
text:'Submit',
disabled:true
},{
text: 'Close',
handler: function(){
win.hide();
}
}]
});
}
win.show(this);
});
});

jsakalos
14 Oct 2010, 9:20 AM
That shouldn't happen. Moving this thread to bugs.

meroy
15 Oct 2010, 1:47 PM
Thanks for posting. This has been entered into Trac.